Bug 725734 - Themes not alphabetized

qsort() the array returned by themes_list_themes().

(cherry picked from commit 2303ce910d206e9e6f95f1a35eb86fe7a16772f4)