add protected sort helper
add sortable pagination