adding sorting file to the footer