init ruby sorting