Sorted index page
Fixed sorting
Added pagination
Small vital fixes