Function isSortingAscByDefault