sorting for pages_list no spaces