Extension based file sorting