Tossing this one out there for including in index.html, been annoying me for awhile. Sorts your users by username alpha on the stats page.
Also if anyone really cares, I can provide code for worker average % on shares and rejects etc though the mod is a bit more complex.
buildTable("#users", users, users,
{
"User": { 'data':getUserName } ,
"Last Seen": { 'data':getUserTime, 'align':'left' },
"Shares": { 'data':getUserShares, 'align':'center' },
"Rejects": { 'data':getUserRejects, 'align':'center' },
"Hashrate": { 'data':getUserHashrate, 'align':'center' }
},
function(c,d){
return c > d;
},""
);