I have some plugin, that show file size like three digits and one letter (10 M, 125 k, 682b), but if I try to sort by this column, they sort as strings.
May be include in wdx interface some new function, that receve parameters two file names, and fiel name, and return -1, 0 or 1 if field value is less, equel or more, and Total Commander will sort with this function?
Sorry for my english, it isn't my native language. May be someone translate it better?
У меня есть плагин, ктоторый показывает размер файла в виде трех цифр и одной буквы (10 M, 125 k, 682b), но если я пытаюсь отсортировать по этой колонке, сортируется как строки.
Может быть включить в интерфейс wdx новую функцию, которая будет получать как параметры именя двух файлов, и имя колонки, и будет возвращать -1, 0 или 1 если значение этой колонки меньше, равно или больше, а Тотал Коммандер отсортирует с помощью этой функции?
Пожалуйста, переведите этот текст более правильно
Sort by field from content plugin
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Apparently the plugin returns a string and not a number. There is already an option to return both a numeric value (for sorting and searching) and a string in the plugin interface.I have some plugin, that show file size like three digits and one letter (10 M, 125 k, 682b), but if I try to sort by this column, they sort as strings.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com