From cdcc55ca7e94045e840e25e5302eadcffcb9af95 Mon Sep 17 00:00:00 2001 From: Patrick Rodgers Date: Mon, 25 Sep 2023 12:33:45 -0400 Subject: [PATCH] Update get-all.ts --- packages/sp/items/get-all.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sp/items/get-all.ts b/packages/sp/items/get-all.ts index 194e77fdf..ce4ecc4c6 100644 --- a/packages/sp/items/get-all.ts +++ b/packages/sp/items/get-all.ts @@ -30,7 +30,7 @@ _Items.prototype.getAll = async function (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); } });