private void buildSingleTransition(ArrayList<SequenceSearchState> all, int pos, int val) {
		SequenceSearchState newstate = null;
		for (DittedBitSequence curpat : possible) {
			if (curpat.isMatch(pos, val)) {
				if (newstate == null) {
					newstate = new SequenceSearchState(this);
				}
				newstate.addSequence(curpat, pos + 1);
			}
		}
		trans[val] = newstate;
		if (newstate != null) {
			newstate.sortSequences();
			all.add(newstate);
		}
	}
Sort the sequences that have been added
Ghidra/Features/Base/src/main/java/ghidra/util/bytesearch/SequenceSearchState.java