Session table should be sortable
- SortableCollection implements a Backbone.Collection that can be sorted by any Model attribute, in ascending/descending order
- use a SortableCollection of "session info" in SessionTableView. In the next step the sort config will be updated interactively.
- break out the table body rendering and template so it can be updated independently without recreating the whole view markup.
Improve definition of the SortableCollection API, allowing multiple changes without unnecessary churn
Improve sort correctness
- early return when no sort attribute set (as on collection init)
- special-case undefined values
Interactive control of session table sorting
- simplify header markup definition by using Handlebars #each and passing column properties with context
- listen to clicks on column headers, update sort attribute or direction according to clicked column header
formatTime() helper should not append unit "s"
(don't want this in sessions table)
Support to round time values to given precision, remove locale specific formatting because it was inconsistent with other numbers in the UI
Apply a sensible default sort: by session ID
Merge branch 'session-tableview'