pwSortFits


 fits = pwSortFits(fits, mode)

 Sorts an array of fits depending on the chi-square value
 or on the fitting time.

 mode    'chisq' (default) or 'time'