Skip to content

Commit

Permalink
Merge pull request #68 from sunbird-cb/nic-fixes
Browse files Browse the repository at this point in the history
Fixed list sort issue
  • Loading branch information
christyfernandes authored Jan 18, 2023
2 parents 7724cf6 + 28b4a57 commit 48065a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ export class DirectoryViewComponent implements OnInit {
}
})
this.data.sort((a: any, b: any) => {
const textA = a.mdo.toLowerCase()
const textB = b.mdo.toLowerCase()
const textA = a.mdo.trimStart().toUpperCase()
const textB = b.mdo.trimStart().toUpperCase()
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0
})
}
Expand Down

0 comments on commit 48065a0

Please sign in to comment.