mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Sort title_ids
and entries
alphanumerically
This commit is contained in:
parent
5d62a87720
commit
4aeda53806
@ -106,10 +106,13 @@ class Title
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@title_ids.sort! { |a,b|
|
@title_ids.sort! do |a, b|
|
||||||
@library.title_hash[a].title <=> @library.title_hash[b].title
|
compare_alphanumerically @library.title_hash[a].title,
|
||||||
}
|
@library.title_hash[b].title
|
||||||
@entries.sort! { |a,b| a.title <=> b.title }
|
end
|
||||||
|
@entries.sort! do |a, b|
|
||||||
|
compare_alphanumerically a.title, b.title
|
||||||
|
end
|
||||||
|
|
||||||
mtimes = [File.info(dir).modification_time]
|
mtimes = [File.info(dir).modification_time]
|
||||||
mtimes += @title_ids.map{|e| @library.title_hash[e].mtime}
|
mtimes += @title_ids.map{|e| @library.title_hash[e].mtime}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user