wip getting basic sorting working