PathOfBuildingCommunity / PathOfBuildingCommunity/PathOfBuilding
Sorting uniques yields incorrectly sorted items when main skill is minion based
Nessuno ha ancora preso questa issue.
- Lingua principale
- Lua
- Stelle
- 5.4k
- Fork
- 2.4k
- Merge medio
- 1g 12h
- PR unite (30g)
- 26
Descrizione
Check version
- I'm running the latest version of Path of Building and I've verified this by checking the changelog

Check for duplicates
- I've checked for duplicate issues by using the search function of the issue tracker
What is the expected behaviour/value?
I understand the sorting might be tricky because some sorting options need to apply to minions, such as DPS or life when a minion skill is selected.
Except some sorting options seem to player-only (strength, dexterity, intelligence, effective hit pool, and so on). So for these, I would expect to have items being sorted based on the character itself rather than the skill selected.
What is the actual behaviour/value?
When sorting unique items, many of the sorting options yields the wrong results.
I identified two cases where sorting results are either alphabetically sorted (case 1) or seemingly random (case 2)
The root cause of the issue seems to be linked with having a Main Skill configured on a minion skill (in my case Absolution).
Selecting a non-minion skill causes the sorting option to yield an adequately sorted list.
Case 1 - Sorting options yielding alphabetically sorted list
Examples (with 1st result highlighted)
-
Sort by Mana:

-
Sort by Strength:

-
Sort by Dexterity:

Case 2 - Sorting options yielding list in seemingly random order
-
Sort by Effective Hit Pool:- 1st item:

- 2nd item:

- 10th item:

- 1st item:
How to reproduce the issue
- Add any minion skill as main skill, for example:
Absolution - Sort unique items by metrics only affecting the player, for example:
Strength,Dexterity,IntelligenceorEffective Health Pool - Then switch the main skill to a non-minion skill => results are different from
step 2.
Character build code
https://pobb.in/2pE4Szyp5TuB
Screenshots
No response
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Nell’issue non sono identificati né un file sorgente né un test. Carica la build del personaggio collegata, seleziona un’abilità minion come Absolution e riproduci l’ordinamento degli oggetti unici per Strength, Dexterity, Mana o Effective Hit Pool, quindi confrontalo con un’abilità principale non-minion. Il lavoro è completato quando le metriche relative esclusivamente al giocatore vengono ordinate in modo coerente indipendentemente dall’abilità selezionata, con copertura di regressione per i casi segnalati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- lua
- Ambito
- desktop
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100