Sorting, pagination and bootstrap 3