How are the task lists ordered in the epic cards?
The Open list is ordered according to the time the cards were added to the epic. The most recently added card is shown first in the list. If you want to move a task to the top of the list, just reassign it to the epic.
The Done tasks are shown in the same order as they are in your Trello board.