encode the ordering in the fragment