BlueBrain / BlueBrain/nexus

Search - sort for layerThickness incorrect, not numerical sort.

Open
#3,460 0 comments 0 reactions 0 assignees View on GitHub
bug fusion
Dominant language
Scala
Stars
301
Forks
76
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

When I do the search (in production) the sort for "LayerThickness" does not seem to work. In the dropdown the smallest value is "34", but when I sort it ascending the smallest value is "108".

You will not see the behavior in stage as the values for the layer thickness are all above 100.

I guess it is sorting the values alphabetically instead of numerically?

**What part of Nexus is affected**
- [X] Fusion
- [ ] Delta
- [ ] CLI
- [ ] Documentation

**To Reproduce**
Steps to reproduce the behavior, e.g. for Fusion:
1. Go to 'search'
2. Sort "LayerThickness".

**Expected behavior**
Column should be sorted according to numerical value

**Screenshots**
![output1.gif](https://images.zenhubusercontent.com/62714e29b18ff51479a15c78/4c848afe-fa49-4120-8a15-3f47cf85cd71)

**Additional context**
User: adietz
Env: prod
Nexus Delta v1.8.0-M2
Nexus Fusion v1.8.0-M7.1

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the Fusion search view using the LayerThickness column, comparing ascending results with the displayed values. Trace the LayerThickness sorting entry point and verify that ascending and descending results use numerical rather than alphabetical ordering; the work is done when values such as 34 sort before 108.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
frontend, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.