1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-03-09 22:09:47 -04:00

Fix sort order

This commit is contained in:
Reinhard Pointner 2019-05-03 22:09:49 +07:00
parent 406e25c49d
commit 0bd3c01d18

View File

@ -30,7 +30,7 @@ void createThumbnail(original, thumb) {
void createIndexFile(db) {
def indexFile = _args.outputPath.resolve("images/${db}/thumb/poster/index.txt")
def index = indexFile.dir.listFiles{ it.image }.collect{ it.getNameWithoutExtension() }.toSorted()
def index = indexFile.dir.listFiles{ it.image }.collect{ it.nameWithoutExtension as int }.toSorted()
index.join('\n').saveAs(indexFile)
execute '/usr/local/bin/xz', indexFile, '--force'