Skip to content

Sort answers by category and position#295

Merged
ninom5 merged 2 commits intomainfrom
lucijs/sort-answers
Oct 12, 2025
Merged

Sort answers by category and position#295
ninom5 merged 2 commits intomainfrom
lucijs/sort-answers

Conversation

@lucijs
Copy link
Contributor

@lucijs lucijs commented Oct 12, 2025

No description provided.

@lucijs lucijs requested review from ToniGrbic and ninom5 October 12, 2025 16:30
Copy link
Member

@ninom5 ninom5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pa evo ja san testira radi top, mos samo prominit ono sta san reka ako ti se da ako ne nmvz, svakako trenutno nema takvo pitzanje s position null, double checka san


if (categoryCompare !== 0) return categoryCompare;

return a.position! - b.position!;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mozda nebi asserta da nikad nece bit null, nebi tribalo bit, al ako se dogodi neki edge case ili slicno, pogotovo sta se position dodaje direkt u bazi, nisan napravia kroz app kad dodas pitanje da stavis position

@ninom5 ninom5 merged commit 028e31c into main Oct 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants