Accounts to Synchonize sort order
Expected behaviour
The client accounts (folders on PC) should list the accounts in a logical order. Perhaps order them alpha-numerical.
Actual behaviour
The client accounts seem to list the accounts (folders on PC) in a random order.
See my example. It should list 01-18 but they are all out of whack...

Steps to reproduce
- Install client 1.5.2
- Remove default folder and add a number of other folders to sync.
- Right-click tray icon or open OC.
Server configuration
Operating system: Linux shared hosting
Web server: Apache
Database: MySQL
PHP version: 5.3.27
ownCloud version: 6.0.1
Client configuration
Client version: 1.5.1 & 1.5.2
Operating system: Windows Small Business Server 2003
OS language: English
Installation path of client: C:\Program Files\ownCloud
@MU7L3Y are they possibly in the order you added them?
@jancborchardt nope, I paid attention to that. I added them 01 to 18. And even if I did add them in that order, surely it should sort them correctly.
Oh and still happening with oc 6.0.3 and client 1.5.4
Same problem using client 1.6.0
Seems that it syncs the folders in order, just doesn't display them in order. And yes 1.6.0 still has the problem, although when I installed this, the order changed around from the picture above. Still wrong though...
It is not reproducible in the latest version.
@lmaestro What version are you referring to? 1.6.3 still does not list in order.
Version 1.7.0-nightly20140929 (build 1006), it is a development version.
@lmaestro I just updated to 1.7.0 beta 3 and the folders are still not in order as you can see here:
@lmaestro I am using 1.7.0 rc1 now and my list of folders are still not in order????? Please look at this before releasing 1.7.0. This should not be closed...
@dragotin @danimo @lmaestro Why is this closed? It is still not working right with 1.7.0. It should be pretty simple to sort the folders alpha-numerical. Every time I start the client the order of my folders change and it's rather annoying...
Is it possible to get this fixed quickly before 1.7.1 is released?

See rullzer@8677fb18bb8b6569d00aa08ce3f19964db0d4837 for a fix. Note that this only sorts on name. Status of folders is not taken into account.
We might also want to add some form of sorting to the accountsettings window. However priority sorting would be good to have, so on top are the failed syncs.. then the active syncs and then the paused syncs. Of course within each group sorted alphabetically.
Merged @rullzer 's patch. Closing because I do not think it should be sorted by status (that would seemingly randomize it again).
Thanks @rullzer btw!
@rullzer @danimo I just installed 1.8.0 and that right-click tray menu is perfect, thanks. But it seems the actual owncloud dialog was missed in sorting the folders?

Let's re-evalulate this as part of the new account UI in 2.0
@ogoffart
I look forward to this update. I have 1.8.1 now and it's still really hard to find folders sometimes, especially with each folder shown really big like in the pic I posted above. Maybe have different view options? Large/Small etc.
I tested with DESKTOP v ownCloud-2.0.0.5232, is working fine. I close the bug
Yes this is working now in 2.0.0 and 2.0.1. Thank you.