sorted gems out