[Now Implemented!] Sortable Views


hawibtsync

Recommended Posts

  • 1 month later...

Group/Filter/Sort the lists "Devices" and/or "Folders". Currently I have 15 folders synced between 9 devices (not every folder on every device), so the "Devices" tab gets a little bit unorganized. It would be great to be able to define sort order and also group the list either by device or by folder, so that it's e.g. possible to see all connected devices per folder, or all active folders per device.

Maybe this makes sense for the "Status" column as well: group by sync status: one group with synced entried, another group with unsynced entries.

Link to comment
Share on other sites

  • 10 months later...

Mobile Client - Sort Files By Date Descending

 

Is there a way one could sort the files by date in descending (or ascending) order? Similar functionality as we see in Windows Explorer or Mac Finder. Could add the option(s) to the "..." menu in the upper right corner.

Link to comment
Share on other sites

  • 3 weeks later...

Every column, wether it's in the WebGUI or the clients should be able to have the functionality to sort the share or what so ever after the content it contains.

Share -> A-Z

Size -> ASC or DESC

Status -> last synced oldest top or newest top

and so on

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

I just installed 1.4 assuming that it would *obviously* let you sort / search / reorder your folders, given that the major change seems to be a UI revamp. Surprised that it still wasn't possible, given how easy it would be. 

I've got about 40 sync folders at the moment (one per client, I'm using it to sync database backups off the servers and to the backup servers and share the backups with clients if they request them, so it does need to be that granular) plus half a dozen utility synced folders ("WebServer Utility", "SqlServer Utility", for easily moving files to an fro servers and keeping useful admin scripts in sync between servers), plus some for projects I'm doing for other people, plus some personal ones. 

And there isn't even a file which I can easily edit in a text editor that controls the order or the configuration. 

Feature Request:

Please let me sort and search the names of my sync folders. 
 

Or:

Give me an option to save the sync folder configuration in some kind of easily editable XML or JSON structured file so I can muck about with it.

 

Or:

Give me a way of structuring / grouping / tagging my list of synced folders

Edited by bencurthoys
Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...
  • 3 weeks later...

+1

 

If nothing else, I think for many of us it would make much more sense to display the folders in alphabetical order (based on the Name) instead of the order in which the folders were added (like it is right now). How about just a simple switch for that in the configuration?

Link to comment
Share on other sites

  • 2 weeks later...

First, I want to say BitTorrent Sync is a brilliant concept. A couple of years ago I was considering working on a distributed versioning filesystem using bep_0003 as the basis for how files were synchronized. So it's nice to see Bram is thinking along similar lines.

 

Anyhow, getting to the feature request, since files and directories are sorted using the native operating system's lister. I think BT Sync would be a lot easier and more useful to the end user if the client was more consistent in how it presents and sorts files on mobile devices.

 

Why is this important?

 

It is ridiculously tedious on the iPad scrolling through tens of thousands files to get to the bottom of the folder, just so I can finally click on the directory that I ultimately wanted to navigate to. Any photographer who takes lots of pictures knows exactly the sort of problem that I'm talking about.

 

It would simply just be nice if BT Sync was consistent and showed files in the file list the same way across all devices.

 

The Mess That Is File Listing and Sorting

 

To give a sense of how much of a jungle it is out there. Lets go through a couple examples to see how various operating systems pass folder-file lists to BitTorrent Sync.

 

Method #1 - iOS

 

BT Sync sorts files on the iOS first by:

 

{directory-file insensitive}

 

{numbers, A-Z first (case sensitive)}
{punctuation, a-z last}

 

Note: when I say punctuation I mean things like: [_-,.]

 

The iPad iOS lister, like OSX, doesn't distinguish between files and directories (I'll refer to this as directory-file insensitive) and intermixes the two as though they are the same thing.

 

Method #2 - OS X

 

On OS X, the files shown in Finder are sorted a bit differently:

 

          {directory-file insensitive}

 

{punctuation first}
{numbers, a-z last (case insensitive)}

 

This is a curious departure from iOS when you consider that under the hood iOS basically uses the character code (e.g. 0x31 = 1, 0x41 = A, 0x61 = a) to figure out the sort order. This means the developers, as a conscious part of the design, had to intentionally set character codes 0x5B to 0x60 to sort before 0x31. I suspect this was to make OS X more like Windows.

 

Method #3 - Windows

 

In a Windows environment files are sorted by:

 

{directories first}

{files last}

 

{punctuation first}

{numbers, a-z last (case insensitive)}

 

Method #4 - *NIX

 

Most *NIX environments list directories and files in a manner similar to iOS (for obvious reasons), but there are also differences due to how the locale is configured. In Gentoo, for example, the default unaliased 'ls' with LC_COLLATE=en_US.utf8 will show:

 

{directory-file insensitive}

 

{punctuation [_-,.] is ignored because of LC_COLLATE, the first [a-zA-Z0-9] character is used}

{numbers, a-z first (case insensitive)}

 

By setting and running:

 

LC_COLLATE=C

ls

 

This gives results that are more or less identical to what we would get on the iPad or other iOS devices (method #1).

 

Of course we have more room for hacks on open operating systems (jailbroken / rooted android devices excluded since they are easily invalidated) because we can alias 'ls' and export LC_COLLATE to be what we want it to be.

 

Ideally I prefer getting as close to the Windows approach (method #3) as possible:

 

LC_COLLATE=C

ls -a --group-directories-first

 

Though unfortunately the 'C' codepage isn't case insensitive like en_US.utf8 and sorts using a variation on the method #1 approach that is directory-file sensitive (method #5).

 

{directories first}

{files last}

 

{numbers, A-Z first (case sensitive)}
{punctuation, a-z last}

 

Method #6 - Android

 

On Android 4.4 KitKat the sort function uses:

 

{directories first}

{files last}

 

{numbers, a-z first (case insensitive)}

{punctuation last}

 

And to think - there are even more permutations possible!

 

Ridiculous, huh?

 

How Do We Make This Easier?

 

In an ideal world users should be able to specify how they want to sort (name: A-Z ascending vs Z-A descending, etc.) and display (using the methods outlined above) their files.

 

Full customizability is a bit of work, of course. So for the time being an option to allow advanced users on *NIX-style OSes (iOS, Android) to go into the settings to specify the code page through LC_COLLATE and manually pass parameters to the API that retrieves the files list would be a nice workaround.

 

Bottom line though it shouldn't be so tedious to navigate through folders. Either a directory tree-view or search function is needed, file sorting by name / date / extension should be added, or something needs to be added to make navigation more efficient.

Edited by xtraeme
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.