second argument allowing for optional sorting