Tags should are sorted alphabetically now by TagService.getTags(long taskid). Fixes 15806727 and also sorts tags alphabetically on the filterscreen and the taskdetails.

pull/14/head
Arne Jans 13 years ago
parent b18eb83b30
commit 389b68d4ff

@ -167,7 +167,7 @@ public final class TagService {
*/ */
public TodorooCursor<Metadata> getTags(long taskId) { public TodorooCursor<Metadata> getTags(long taskId) {
Query query = Query.select(TAG, REMOTE_ID).where(Criterion.and(MetadataCriteria.withKey(KEY), Query query = Query.select(TAG, REMOTE_ID).where(Criterion.and(MetadataCriteria.withKey(KEY),
MetadataCriteria.byTask(taskId))); MetadataCriteria.byTask(taskId))).orderBy(Order.asc(TAG));
return metadataDao.query(query); return metadataDao.query(query);
} }

Loading…
Cancel
Save