Added fix for sorting tables while loading

It now makes sure it only loads the last requested page