Spaces:
Running
Running
Tobias Brugger
commited on
Commit
·
e7ae4c5
1
Parent(s):
3f209a4
sorting
Browse files
src/lib/DatasetViewer.svelte
CHANGED
|
@@ -69,8 +69,8 @@
|
|
| 69 |
fetchAllRows(scoresDataset, scoresConfig, 'train', undefined)
|
| 70 |
]);
|
| 71 |
|
| 72 |
-
data1 = rows1 as TermDefinition[];
|
| 73 |
-
data2 = rows2 as TermDefinition[];
|
| 74 |
equivalencyScores = scoresRows as EquivalencyScore[];
|
| 75 |
|
| 76 |
console.log('Jurisdiction 1 data:', data1);
|
|
|
|
| 69 |
fetchAllRows(scoresDataset, scoresConfig, 'train', undefined)
|
| 70 |
]);
|
| 71 |
|
| 72 |
+
data1 = (rows1 as TermDefinition[]).sort((a, b) => a.term.localeCompare(b.term));
|
| 73 |
+
data2 = (rows2 as TermDefinition[]).sort((a, b) => a.term.localeCompare(b.term));
|
| 74 |
equivalencyScores = scoresRows as EquivalencyScore[];
|
| 75 |
|
| 76 |
console.log('Jurisdiction 1 data:', data1);
|