#96 Tags not properly sorted

v1.0 (example)
closed-out-of-date
nobody
Interface (47)
5
2015-10-16
2012-03-25
K. Hampf
No

(Version 1.2) While trying to use TSW (The Secret Weapon, a GTD approach) which relies heavily on the ability to sort tags I've discovered that tag sorting itself (sorting of tags used within a note). If you open a note the tags appear sorted correctly, but the tags are not sorted in the same order in the list view (which in TSW is used. Editing the tags, even just deleting a space before any tag and then TAB:ing out resorts the list view correctly and they seem to stay that way. However, when synchronizing and opening on another computer the tag sorting is screwed up again.

Discussion

  • Randy Baumgarte

    Randy Baumgarte - 2012-03-26

    Can you please provide some screen shots? I don't think I understand what you are reporting.

     
  • K. Hampf

    K. Hampf - 2012-03-26

    Tags of selected item not properly sorted in list view ('L' > '5')

     
  • K. Hampf

    K. Hampf - 2012-03-26

    Tags sorted correctly after just editing the tags and deleting the space before the last tag (5 before L)

     
  • K. Hampf

    K. Hampf - 2012-03-26

    Screenshots uploaded. Thanks for looking at the problem. When I re-read my initial description I noticed unclosed parenthesis and bad grammar, sorry for that, I was tired :-)

     
  • Randy Baumgarte

    Randy Baumgarte - 2012-03-27

    NP. I wanted to be sure I understood. The screen shots helped.

    Try downloading the latest unstable jar & see if it corrects your problem. I don't like how it is solved, but it seems to work for me.

     
  • K. Hampf

    K. Hampf - 2012-03-28

    Now I have used the latest unstable (as of 28.03.2012) and have come to this conclusion: I can "fix" the tag order on one system and then when I sync the order will be wrong on the other system. If I fix the order on the second I will get them messed up again on the first etc.

    My next test will be to copy ~/.nevernote and see if the order stays. Maybe the tag has different ID's on the different systems? They should sort alphabetically on sync and not just use the last synced order.

    I whish I could find time to look at the code ... but I hope this helps to improve a great piece of software, however slightly. I've gone from thinking that nixnote is allright to depending on it to get anything done :-)

     
  • Randy Baumgarte

    Randy Baumgarte - 2012-03-28

    That's weird. The sort order isn't something that is synchronized. It is just being sorted locally. Are you saying that by sorting it in nixnote that it is causing them to be unsorted in TSW?

     
  • petur

    petur - 2012-03-28

    I'm seeing the same issue. Some tags are sorted incorrectly for some reason.

    If I change the tag-line, the sorting is fixed. I can change it by simply adding a space to the end. This fix works fine if you are running Nixnote on only one PC.

    When ever the note changes on the server, and Nixnote updates it with a sync, the sort order is wrong again. This shows when you have two Nixnotes running. If I change it on one to fix the sort, it is synched and reverts to wrong sort on the other. And vise versa.

    Hope this helps explain the issue.

    BTW, TSW is not a program, it is just a way of tagging your notes and using Evernote as a Todo tool. Tag sorting is very important for the workflow introduced in TSW.
    http://www.thesecretweapon.org/

    Petur

     
  • Randy Baumgarte

    Randy Baumgarte - 2012-03-28

    Damn, If TSW isn't a program then I can't blame them. :-)

    Let me make sure I understand. You have the fix applied everywhere but you're seeing the problem. As I understand it, this is what you're encountering.

    Situation 1:
    With only one instance of Nixnote the sorting is correct. When you update a note's tag and sync the sorting is still correct as long as no changes are retrieved (i.e. all changes are uploaded but nothing new is downloaded).

    Situation 2:
    With only one instance of Nixnote the sorting is correct, but when the note changes on Evernote's servers the sorting is incorrect the next time you synchronize Nixnote and pull down the change.

    Is this correct?

    Is the tag name itself being changed & synchronized or just the note?
    Is the sorting incorrect on just synchronized notes or is it incorrect on unsynchronized notes?
    If you restart Nixnote, does the sorting appear correct again?

    Thanks again for the debugging info & sorry to be slow in understanding what you're seeing.

     
  • petur

    petur - 2012-03-28

    Situation 1:
    If I remove ~/.nevernote/, and restart and resync, the sorting is wrong. It only gets fixed after changing the tags on the note. And it reverts to wrong whenever changes are pulled.

    Situation 2:
    Assuming you had made the fix locally, then it would revert when pulling changes.

    Is the tag name itself being changed & synchronized or just the note?
    - If either changes, it reverts the sorting.

    Is the sorting incorrect on just synchronized notes or is it incorrect on
    unsynchronized notes?
    - Not 100% sure what you mean. When I make the change it updates the sorting locally even if I don't synchronise. It of course only changed on the other PC after a synch on both PCs.

    If you restart Nixnote, does the sorting appear correct again?
    - If you make the fix, then it keeps the correct sorting after a reboot.

    Hehe, it is a difficult situation to explain :)

     
  • petur

    petur - 2012-03-28

    Btw, it is only a few notes that seem broken. most of them work fine.

     
  • petur

    petur - 2012-03-28

    No, scratch that, all of them are broken. If I start adding or changing tags on other notes, they show the same behaviour.

     
  • K. Hampf

    K. Hampf - 2012-03-28

    a) Manually "touching" the tags on an unsorted instance of nixnote fixes the sorting but only on that instance. Syncing to another instance messes them up there.
    b) Fixing them on the other instance messes them up on the first instance when syncing again.
    c) When in order (or in disorder) it's always persistent on that particular instance (you can exit and restart nixnote and the sorting stays the way it was).

    and now for something new: Editing a note in the webinterface on evernote.com also messes up the tag sorting when resynced with nixnote, i.e. when nixnote pulls the changes.

     
  • K. Hampf

    K. Hampf - 2012-03-29

    Adding a new tag and then dragging a bunch of notes on it to tag them puts that new tag first in the tags of each note, i.e. without sorting ...

     
  • Randy Baumgarte

    Randy Baumgarte - 2012-04-05

    I can't recreate this. I uploaded the latest unstable jar again. Can you please re-download it and try again? It Help/About it should say 1.2.120404

     
  • K. Hampf

    K. Hampf - 2012-04-13

    I verified all installations state 1.2.12404 as their version. Still, creating a note somewhere (another nixnote, also 1.2.12404 or android app, or at evernote.com) makes the tags become unsorted when the message gets downloaded into nixnote. For example the new note can get the tags in the following order: "Call, 1-Now, Work".

    When looking at the tag field of that new note, the tags appear in the correct order but not in the list view and it is therefore not sorted properly. Editing the tag field by adding a space and TAB:ing out (just updating it) corrects the problem in the running instance of nixnote but causes other instances of nixnote to update the note and put the tags in the wrong order on that instance.

    The fixes in version 1.2.120404 has not corrected the sort order of tags in list-view when a note is updated or freshly downloaded. I will try to think of a way to make a list of steps to reproduce the problem.

    Can nested tags affect the sorting?

     
  • petur

    petur - 2012-04-23

    The problem is not fixed in 1.2.12404.

    It seems tag nesting causes the problem. I am unable to reproduce the issue with un-nested tags. I am not certain what causes the problem with nested tags, I will try to make a concise set of steps that reproduce the problem.

     
  • Randy Baumgarte

    Randy Baumgarte - 2012-05-16

    I uploaded another test jar. Can you please try it and see if it corrects the problem?

    Thanks.

     
  • petur

    petur - 2012-06-23

    The problem is not fixed in 1.2.120508.

     
  • Jan-Pieter van den Heuvel

    I also ran into this bug when using NixNote 1.4 for TSW. Could it be caused by lines 156-179 of gui/NoteTableModel.java? It seems like it should sort and concatenate the tags, but it isn't... How about using Collections.sort on a copy of the tagNames of the note and then concatenate them?

     
  • Randy Baumgarte

    Randy Baumgarte - 2015-10-16

    Closing as out-of-date.

     
  • Randy Baumgarte

    Randy Baumgarte - 2015-10-16
    • status: open --> closed-out-of-date
    • Group: --> v1.0 (example)
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks