Fixed jOrderings.

jOrderings was wrong when the same number occured more than once.