fixes sort from to for custom fetches