sort, limit implemented