Forum Archive

Sorting function

[deleted]

Hello, I really enjoy using your app. But one thing I'm curious about is the unavailability of the backward sorting function by name - which means that I can only sort files by abc, not cba. I wonder if there's button that enables that. And if there isn't, would you mind enabling such function in next update? Wait for your answer.

ccc
my_list = 'al bob carl david'.split()
print(my_list)
print(list(reversed(my_list)))
[deleted]

Thank you for your replying, but what i want to ask was not python asorting function. What I want to ask was the sorting function of main interface(file navigator) which is shown when clicking the '...' button in the bottom part. Thanks!

Webmaster4o

There is no such functionality either in the App Store version or the version to be released shortly... Why do you need it?

[deleted]

It's because of my naming habit. I usually name files 'yymmdd blah', and by that way the ascending order sorts the oldest first and newest last, which makes it harder to access newest files. And if I use date sorting option, it mixes the order! As a result I desperately need the descending file sorting option :(

Webmaster4o

This makes sense. You can contact @omz several ways, his email is support@omz-software.com, and you can find his Twitter @olemoritz. I find twitter to be the most reliable way to contact him, if you reach out to him he might implement it quickly because it's so simple.

Phuket2

@papership , whilst not a ideal solution. If you are on the beta, you could use the dialogs.py module , using the list dialog to give you a list of the current directory (eg, the directory of the file that's currently open in editor) sorted the way you want. In conjunction with the editor module you could open your selection in editor.

If on 1.5 still straight forward to do. Same thing. You just don't have dialogs.py. So you need to create a ui.View add a ui.TableView to it for your list.

Then your resulting script you can place in your tools menu for easy access.

Not sure if you have done anything with the editor before. Below is a link to a simple script that creates temp files. Has little relevance, except a few things about calls to the editor.py
CreateTestFile repo