naive attempt at sorting numerically