updating custom global sorting for grades. Readying for adding UI for
custom grade sorting.