Move latest_transactions ordering logic to Source.