attempt at sorting ring