Author Topic: Change the default list sorting to alphanumeric  (Read 3503 times)

Pete

  • Guest
Hi,

first of all I want to thank you for this amazing program. I then have a small suggestion:

The situation is the following:
You have files named 1.jpg, 2.jpg, 10.jpg, 11.jpg.
Windows will sort them logically like this: 1.jpg, 2.jpg, 10.jpg, 11.jpg.
When you drag&drop those files into the uploader the list in the popup window and later in the main upload list will be sorted like this: 1.jpg, 10.jpg, 11.jpg, 2.jpg.

This can be a problem/annoyance (I ran into several times), when you upload several archives/pics and you later want to get the them in a 'normally' sorted way (1, 2, ..., 10) but you have to manually sort them because zoomUploader sorts them in another way.

May I suggest changing the default list sorting to the Windows like sorting? It's called alphanumeric sorting ( http://www.davekoelle.com/alphanum.html ).
btw, what language did you write the program in?

Thank you and greetings

And thank you for allowing posting without having to register first - really like that.

Offline z_o_o_m

  • Administrator
  • Hero Member
  • *****
  • Posts: 7 228
  • just ask me ;)
    • File & Image Uploader
Re: Change the default list sorting to alphanumeric
« Reply #1 on: 09-10-2015, 12:26:01 »
I don't know what you do but my program uses natural ("alphanumeric") sorting.
I have just tested it to make sure and it gets sorted like 1, 2, 10 ... not like 1, 10, 2

Pete

  • Guest
Re: Change the default list sorting to alphanumeric
« Reply #2 on: 09-10-2015, 13:22:36 »
This is what I get:

http://img6.pixhost.org/images/4105/29824583_test.jpg

W7x64.

Pete

  • Guest
Re: Change the default list sorting to alphanumeric
« Reply #3 on: 09-10-2015, 13:26:50 »
Oh I just found out the problem lies in the drag & drop. If you drag & drop files into the program, the sorting is messed up.
If you add it via File -> Add File it works fine.

Offline z_o_o_m

  • Administrator
  • Hero Member
  • *****
  • Posts: 7 228
  • just ask me ;)
    • File & Image Uploader
Re: Change the default list sorting to alphanumeric
« Reply #4 on: 09-10-2015, 14:48:13 »
I see, there. That depends how system adds it into my program.
You can click on the header (in the upload queue list) and it will sort files.

Pete

  • Guest
Re: Change the default list sorting to alphanumeric
« Reply #5 on: 09-10-2015, 15:12:57 »
Yes clicking to sort the colum can help, although it will then mix for example archives and pictures.
The problem also comes by the way, when adding whole folders via File -> Add Folder.

Maybe just run an additional sort after the items got added to the popup window (the one in my screenshot above). Only takes some miliseconds but will prevent this problem/disparity between the two modes (Add File/Add Folder).

Offline z_o_o_m

  • Administrator
  • Hero Member
  • *****
  • Posts: 7 228
  • just ask me ;)
    • File & Image Uploader
Re: Change the default list sorting to alphanumeric
« Reply #6 on: 09-10-2015, 15:22:29 »
You can sort by host ...

Pete

  • Guest
Re: Change the default list sorting to alphanumeric
« Reply #7 on: 09-10-2015, 15:44:16 »
Sorting by host will remove the alphanumeric sort. See this screenshot.

So just running a natural sort function on the file list in the popup window after it got populated would solve this.

Offline z_o_o_m

  • Administrator
  • Hero Member
  • *****
  • Posts: 7 228
  • just ask me ;)
    • File & Image Uploader
Re: Change the default list sorting to alphanumeric
« Reply #8 on: 09-10-2015, 17:19:45 »
I see, I will update that sorting by host. I don't plan to change the way it is added.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Human verification ... What is the name of my program? File & Image ********?: