[mq] Peak detection bug fix: return peaks sorted by frequency