Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
36f37b14
Commit
36f37b14
authored
Oct 28, 2022
by
Stefan Probst
Browse files
fix: use case-insensitive sort on browse pages
parent
f4431d12
Pipeline
#331309
passed with stages
in 8 minutes and 42 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/components/browse/BrowseFacetValues.tsx
View file @
36f37b14
...
...
@@ -95,7 +95,7 @@ function useGroupedFacetValues(
const
grouped
=
new
Map
<
string
,
Map
<
string
,
number
>>
()
Object
.
entries
(
values
).
forEach
(([
value
,
{
count
}])
=>
{
const
firstCharacter
=
value
.
charAt
(
0
)
const
firstCharacter
=
value
.
charAt
(
0
)
.
toUpperCase
()
if
(
!
grouped
.
has
(
firstCharacter
))
{
grouped
.
set
(
firstCharacter
,
new
Map
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment