Added pagination
Added directive for sorting... A bug in the pagination is left