sort only when base URL changes