moved sort to the first call when loading pet results