gramene-search 1.6.33 → 1.6.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- 261726238
2
- 1752850857280378000
1
+ 262524281
2
+ 1752855820460723000
package/dist/index.js CHANGED
@@ -2286,10 +2286,14 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
2286
2286
  (0, $gXNCa$react.useEffect)(()=>{
2287
2287
  const tid = Math.floor(gene.taxon_id / 1000);
2288
2288
  if (props.expressionStudies[tid]) {
2289
- let eList = props.expressionStudies[tid];
2289
+ let eList = props.expressionStudies[tid].sort((a, b)=>{
2290
+ const a_name = `${a.type}:${a.description || a._id}`;
2291
+ const b_name = `${b.type}:${b.description || b._id}`;
2292
+ return a_name < b_name ? -1 : 1;
2293
+ });
2290
2294
  if (props.searchResult.hasOwnProperty('expressed_in_gxa_attr_ss')) {
2291
2295
  const in_gxa = new Set(props.searchResult.expressed_in_gxa_attr_ss);
2292
- eList = props.expressionStudies[tid].filter((e)=>in_gxa.has(e._id));
2296
+ eList = eList.filter((e)=>in_gxa.has(e._id));
2293
2297
  }
2294
2298
  setAtlasExperimentList(eList);
2295
2299
  let refExp = eList.filter((e)=>e.isRef);