Updated Files

added sorting methods