m-ric HF Staff commited on
Commit
99a545d
Β·
verified Β·
1 Parent(s): af3ccf3

Update frontend/src/App.js

Browse files
Files changed (1) hide show
  1. frontend/src/App.js +7 -3
frontend/src/App.js CHANGED
@@ -59,7 +59,7 @@ function App() {
59
  item.model_id.toLowerCase().includes(searchQuery.toLowerCase())
60
  )
61
  .orderBy(
62
- [item => item.scores[sortConfig.key] || 0],
63
  [sortConfig.direction]
64
  )
65
  .value();
@@ -88,13 +88,17 @@ function App() {
88
  <table>
89
  <thead>
90
  <tr>
91
- <th>Model</th>
 
 
 
 
92
  {["GAIA", "MATH", "SimpleQA"].map(benchmark => (
93
  <th
94
  key={benchmark}
95
  onClick={() => handleSort(benchmark)}
96
  >
97
- {benchmark} - {sortConfig.key === benchmark && (
98
  sortConfig.direction === 'desc' ? '↓' : '↑'
99
  )}
100
  </th>
 
59
  item.model_id.toLowerCase().includes(searchQuery.toLowerCase())
60
  )
61
  .orderBy(
62
+ [item => sortConfig.key === 'model' ? item.model_id : (item.scores[sortConfig.key] || 0)],
63
  [sortConfig.direction]
64
  )
65
  .value();
 
88
  <table>
89
  <thead>
90
  <tr>
91
+ <th onClick={() => handleSort('model')}>
92
+ Model {sortConfig.key === 'model' && (
93
+ sortConfig.direction === 'desc' ? '↓' : '↑'
94
+ )}
95
+ </th>
96
  {["GAIA", "MATH", "SimpleQA"].map(benchmark => (
97
  <th
98
  key={benchmark}
99
  onClick={() => handleSort(benchmark)}
100
  >
101
+ {benchmark} {sortConfig.key !== benchmark && '-'} {sortConfig.key === benchmark && (
102
  sortConfig.direction === 'desc' ? '↓' : '↑'
103
  )}
104
  </th>