Verified Commit eec9cef1 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧

Fix sorting on Firefox

parent 3cbf058a
Pipeline #367 passed with stage
in 31 seconds
......@@ -25,8 +25,14 @@ class App extends React.Component {
);
}
compareSuites(element) {
if (element.name == 'core' || element.name == 'extra') {
compareSuites(a, b) {
if (a.name == 'core') {
return -1;
} else if (a.name == 'core' && b.name != 'core') {
return -1;
} else if (a.name == 'extra' && b.name == 'core') {
return 1;
} else if (a.name == 'extra' && b.name != 'core') {
return -1;
} else {
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment