modify quartersorting