Locus Map - forum

Support => Wishlist => Implemented => Topic started by: svartbjorn on April 01, 2011, 22:57:40

Title: Tracks - sorting reverse order?
Post by: svartbjorn on April 01, 2011, 22:57:40
Today tracks are sorted either from a ->z, from shortest-> longest (distance or time), from oldest -> newest, from fewest points -> most points.
You have the button with three squares and a DOWN arrow to select this sorting menu.

---> Would it be possible to add a similar menu button with an UP arrow to sort in the opposite direction?

That would be particularly useful for looking at the latest tracks. Today, you have to scroll down the whole list of tracks to get to the latest track, since that one is always at the bottom when sorted by date.
Title: Re: Tracks - sorting reverse order?
Post by: Menion on April 02, 2011, 20:00:09
hmm second "same" menu is not ideal i think. I instead added into sort menu next sort type "Reverse order" which reverse actual sort type. Try, I' think this should work
Title: Re: Tracks - sorting reverse order?
Post by: svartbjorn on April 02, 2011, 21:17:08
You ask me to try, but there is not such menu entry. Is this a new feature in a version you haven't released yet?
Title: Re: Tracks - sorting reverse order?
Post by: Menion on April 02, 2011, 22:47:36
it's in testing version ... just do to sort and on bottom in new entry ...
Title: Re: Tracks - sorting reverse order?
Post by: svartbjorn on April 03, 2011, 11:09:18
Installed 1.3.0.3 and tested.
I like your Reverse Order implementation!

I have 35 recorded tracks, and tested your reverse sorting feature. Here are my test results:
- normal order sorting is correct for all sort criteria (by name, create date, etc).
- reverse order sorting is correct for all sort criteria EXCEPT for 'Create Date'. In that case I get an order that makes no sense:
   I get the following order of my tracks (they are all in the same category - 'recorded') when sorted reversed by Create Date:
     14/3, 12/3, 8/3, 7/3, 28/2, 1/3, 2/3, 3/3, ..., 7/3, 27/3, 20/3, 18/3, 17/3, ..., 15/3
   I get the same result if I reverse the sorting back and forth, so it is consistent. They are sorted correctly if sorted normally (not reversed).

 Hope this can help you identify the problem.
Title: Re: Tracks - sorting reverse order?
Post by: Menion on April 04, 2011, 14:34:38
hmm interesting. I do not have similar issue but i updated a little code, so please try it in next testing version and let me know
Title: Re: Tracks - sorting reverse order?
Post by: svartbjorn on April 04, 2011, 23:32:05
I did a quick test with version 1.3.0.4. Same error. I look more into this tomorrow to see if I can find a pattern.
Title: Re: Tracks - sorting reverse order?
Post by: svartbjorn on April 05, 2011, 08:53:48
I looked through the sort results once again, but I can't see any pattern. There is a small difference from test version 1.3.0.3, now getting this sequence:
  27/3, 20/3, 18/3, 17/3, ..., 15/3, 14/3, 12/3, 8/3, 7/3, 28/2, 1/3, 2/3, 3/3, ..., 7/3,
Compared with 1.3.0.3 some dates moved from the trailing end to the top, but still there is this strange sequence with descending dates down to 28/2, then changing to ascending dates. This is particularly strange since your normal sorting is correct. It has nothing to do with change of month, because I have a new track from 4/4, and that one is listed at the correct place.
Title: Re: Tracks - sorting reverse order?
Post by: Menion on April 05, 2011, 23:06:48
hmm weird, only solution for me should be if you send me your trackdb.sqll file from data directory where can I check it by myself ...
Title: Re: Tracks - sorting reverse order?
Post by: Menion on April 07, 2011, 07:28:40
oki, problem was in tracks recorded by old Locus version. I was wrongly saved time of creating so this caused that mess. So for anothers, when there will be same problem, just be sure that you're not using some track recorded with locus version below 1.0