Sorts a specified input DAOPHOT file by star number, X, Y positions, magnitudes, etc. The index (column number) can be specified by the INDEX= keyword, or it will be prompted for. Similarly, one can specify to have (or not have) renumbering with the RENUM and NORENUM keyword, or it will be prompted for. The command requires 2 file names, for the input and output file. They will be prompted for unless specified with the DAOFILES FILE=infile FILE2=outfile command.