Commit 22dd25b
authored
fix: use array.tosorted instead of array.sort (#3823)
## Proposed change
Preserve immutability of arrays by using `Array.toSorted` instead of
`Array.sort` so a copy is created instead of modifying the input
## Related issues
<!--
Please make sure to follow the [contribution
guidelines](https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md)
-->
*- No issue associated -*
<!-- * 🐛 Fix #issue -->
<!-- * 🐛 Fix resolves #issue -->
<!-- * 🚀 Feature #issue -->
<!-- * 🚀 Feature resolves #issue -->
<!-- * File tree
60 files changed
+160
-160
lines changed- apps
- chrome-devtools/src/app-devtools/theming-panel
- github-cascading-app/src/cascading
- showcase
- src/components/showcase/sdk
- vscode-extension/src/commands
- packages
- @ama-mcp/github/src/find-repositories-using-library
- @ama-sdk/schematics/schematics/typescript
- mock
- shell
- @ama-styling
- figma-extractor/src/core/requests
- style-dictionary
- schematics
- src
- formats
- helpers
- stylelint-plugin/schematics
- @o3r
- analytics/schematics
- analytics-to-component
- apis-manager/schematics
- artifactory-tools/src/cli
- components
- schematics
- src
- devkit/highlight
- stores/placeholder-template
- configuration/schematics
- configuration-to-component
- core/schematics
- component
- container
- presenter
- page
- design/src/core/design-token/renderers
- extractors
- builders/aggregate-migration-scripts
- schematics
- src/core/comparator/package-managers-extractors
- localization
- builders
- helpers
- i18n
- localization
- schematics
- localization-to-component
- new-version/src
- pipeline/schematics
- rules-engine
- schematics
- rules-engine-to-component
- src
- engine/debug
- schematics/src
- rule-factories/ng-add
- utility
- style-dictionary
- schematics
- src
- formats
- helpers
- stylelint-plugin/schematics
- styling/schematics
- testing/schematics
- third-party/schematics
- iframe-to-component
- tools
- @o3r/workspace-helpers/scripts
- github-actions
- audit/src
- get-npm-tag/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
60 files changed
+160
-160
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
| 195 | + | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments