chiark / gitweb /
Move track sorting to its own function. Only choose_populate() uses
[disorder] / cgi / macros-disorder.c
index d549e10b4932533efb5d02ae01e71a41c135f914..8e891d6afcb2b3c8a066dc6f0171db783727fa08 100644 (file)
@@ -855,6 +855,7 @@ static int exp__files_dirs(int nargs,
   if(fn(dcgi_client, dir, re, &tracks, &ntracks))
     return 0;
   /* Sort it.  NB trackname_transform() does not go to the server. */
+  /* TODO use tracksort_init */
   e = xcalloc(ntracks, sizeof *e);
   for(n = 0; n < ntracks; ++n) {
     e[n].track = tracks[n];