Adding Sort delegate for tile arrangement