- In
_getPeopleList
, replace,
...
name: room.name
...
with,
...
name: room.displayName
...
- Add the following at the top of
orderRooms
,
// Hack Begin
// set some additional name fields
var roomNames = _.map(rooms, function (room) {
// name to sort on
room.sortName = _(room.name).split(', ').reverse().value().join(' ');
// name to display in left-nav
room.displayName = room.sortName;
return room;
});
// sort the rooms
var sortedNames = _.sortBy(roomNames, 'sortName');
// replace original rooms with sorted rooms
rooms = sortedNames;
// Hack End
- Restart the Hipchat client