Skip to content

Commit

Permalink
Sort issue fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pokhrelashok committed Nov 26, 2023
1 parent 1bcdff1 commit 342e7cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/users/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ function UpdateUserDialog({
Select capital
</option>
{capitals
.sort(
(a, b) => parseInt(a.code) > parseInt(b.code)
.sort((a, b) =>
parseInt(a.code) > parseInt(b.code) ? 1 : -1
)
.map((capital) => {
return (
Expand Down

0 comments on commit 342e7cd

Please sign in to comment.