Fixed sort function for other pages.
Updated to work on more types of pages on Facebook.