Is there a way to sort note titles?
Maybe I'm just using tomdroid wrong. I just copy my notes from my PC to my Droid. When I start tomdroid I get an unsorted list. I have a large number of notes. It's too hard to find the top of my linked hierarchy. Searched for a way to find a marker by manipulating the notes and IDs, but no luck. I finally downloaded the latest branch as of a few day ago, looked over the code, and discovered that maybe I could change the SQL ORDER BY on the list mangedQuery to get a sorted list.
It worked. My notes are sorted. Life is good.
I want to thank you guys for the great work you are doing. Now that I'm into this enough maybe I'll help a little from time to time. The next issue is that title links with special characters and numbers don't work correctly. Need to fix that.
See the one line change I made to get a sorted list of notes. Probably not the best solution, but now tomdroid is very usable!!!!!
public static ListAdapter getListAdapter(
// get a cursor representing all notes from the NoteProvider
Uri notes = Tomdroid.
//sb - changed fifth argument from null to "title ASC"
Cursor notesCursor = activity.
// set up an adapter binding the TITLE field of the cursor to the list item
String[] from = new String[] { Note.TITLE };
int[] to = new int[] { R.id.note_title };
return new SimpleCursorAda
}
thanks again. i love tomboy notes, and now i can use tomdroid notes
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Tomdroid Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask razrj for more information if necessary.