sorting of pubs