issues #4 and #2: simple client-side sorting via js + priority column