added sorting my functions