getting gems in order