I have encountered a simple situation in which manual sort order gets lost. Steps to repeat (I'm using 0.9.25H 12/3/2010 installed version):
- In Options | Grids, check the box for "While editing, Enter creates a new item.
- Create new grid.
- In the first item space, write "Two".
- Press enter.
- In the second item space, write "Three".
- Now, select the first item ("Two"), and press alt+enter. This should create a new item above "Two".
- In the new (top) item space, write "One." The three items should now appear in order from top to bottom: One, Two, Three.
- Save and close the grid.
- Reopen the grid. If your situation is like mine, the order will now have changed to: Two, Three, One.
In other words, the order of items reverts to the order of entry (which is also the order of item ID's), but the manually created order gets lost. Can others verify? (Let me know if my description isn't clear.)
(Also note: Before encountering the behaviour described here, I wrote another post with a question about manual sort order metadata here.)
UPDATE: I encountered the behaviour described above while writing a letter. Just now I once again manually moved what should be the first line of the letter back to the top. But then once again closing and re-opening the grid caused that line to move back down (to what happens to be its position when sorted by item ID, even though I have all sorting turned off). And the same goes for the test scenario described above. Even when I manually move "One" back to the top, I can't get it to stick.
UPDATE 2: I just discovered this thread and this Mantis entry. Sorry I hadn't done enough digging before writing this post.
UPDATE 3: In the other thread mentioned above, Armando wrote, "TLI can't retain a manual reordering of items". So, I tried the scenario described above with the new items all under a parent item, and this way the order was maintained. So it seems that the solution, for now, is to have a 'parent' item for my letter, such that the top-level items of my letter are not actually TLI's. That way they'll maintain their order.
UPDATE 4: Note, however, that the method described above (Update 3) does not work if the children are hoisted. When hoisted, as far as I can tell, they become like TLI's again, and lose their manually created order.
Thanks,
Lucas
Comments