Comment 5 for bug 1065581

Revision history for this message
Geoff Sams (gsams) wrote :

I took a look at this today starting from Reporter.pm, which looks like it simply needs one change on line 79 from:

         order_by => { $class => 'name ASC'}

To:

         order_by => { $class => ['username ASC', 'name ASC']}

However, username isn't a thing and I am not knowledgeable in how to reference username for the purposes of sorting within this file!

The current sort order isn't random however, it bases the order of user folders on the sort order of their respective folders. For instance:

zUser15
  !folder1
  !folder2
  !folder4
  dailies
  monthlys
  ztesting
zUser01
  !folder3
  afolder
  2folders
aUser00
  abcfolder
  abcfolder2
  abcfolder3
dUser15
  buttons
  hats

It places zUser15 first because they have more high sorting folders that zUser01 and so on. If 'owner ASC' is placed in the sort it sorts by the id of the user which doesn't properly resolve this issue.