working todo with functions exercise with sort options