Added sorting with closure syntax