Sorting the graphite rules