JAL-3081 more efficient algorithm for annotation ordering by sequence