Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-web
Commits
5d4bfb0b
Commit
5d4bfb0b
authored
Feb 01, 2018
by
Mattias J Duffy
Browse files
sorts by name instead of slug
parent
6a655bc9
Pipeline
#2092
passed with stages
in 1 minute and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/reducers/api.js
View file @
5d4bfb0b
...
...
@@ -19,11 +19,11 @@ export const facilities = (state = defaultFacilityState, action, ui) => {
return
openCheck
;
}
if
(
a
.
slug
<
b
.
slug
)
{
if
(
a
.
facility_name
<
b
.
facility_name
)
{
return
-
1
;
}
if
(
a
.
slug
>
b
.
slug
)
{
if
(
a
.
facility_name
>
b
.
facility_name
)
{
return
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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