Skip to content

Commit

Permalink
Merge pull request #2786 from pnp/patrick-rodgers-add-orderby-to-getall
Browse files Browse the repository at this point in the history
Update get-all.ts
  • Loading branch information
patrick-rodgers authored Sep 29, 2023
2 parents 25ee3d9 + cdcc55c commit c807525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sp/items/get-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ _Items.prototype.getAll = async function <T = any>(this: _Items, requestSize = 2
// $filter - allow setting a filter, though this may fail for large lists
// $expand - allow expanding fields for filter/select support
this.query.forEach((v: string, k: string) => {
if (/^\$select|filter|top|expand$/i.test(k)) {
if (/^\$select|filter|top|orderby|expand$/i.test(k)) {
items.query.set(k, v);
}
});
Expand Down

0 comments on commit c807525

Please sign in to comment.