mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-05 12:25:32 -04:00
Sort titles in library by name by default
This commit is contained in:
parent
650ebc7f9d
commit
7a21f4dc9b
@ -180,6 +180,7 @@ class Library
|
||||
.select { |path| File.directory? File.join @dir, path }
|
||||
.map { |path| Title.new File.join(@dir, path), @storage }
|
||||
.select { |title| !title.entries.empty? }
|
||||
.sort { |a, b| a.title <=> b.title }
|
||||
@logger.debug "Scan completed"
|
||||
@logger.debug "Scanned library: \n#{self.to_pretty_json}"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user