add default sort column and fix pagination bug

Signed-off-by: Suhayb El Wardany <me@suw.me>