<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sort(args):
 """ %prog sort coordsfile Sort coordsfile based on query or ref. """

    import jcvi.formats.blast

    return jcvi.formats.blast.sort(args + ["--coords"])