Extending the sort_th() function use to all pages that need it.