Fix sorting for new optional calling and allele depth