@@ -46,31 +46,31 @@ export default function ChallengeViewSelector(props) {
4646 const [ currentSelected , setCurrentSelected ] = useState ( 'Details' ) ;
4747 const [ isTabClosed , setIsTabClosed ] = useState ( true ) ;
4848 const [ expanded , setExpanded ] = useState ( false ) ;
49- const [ selectedSortOption , setSelectedSortOption ] = useState ( 'Rating: High to Low' ) ;
49+ const [ selectedSortOption , setSelectedSortOption ] = useState ( ) ;
5050 const isF2F = type === 'First2Finish' ;
5151 const isBugHunt = _ . includes ( tags , 'Bug Hunt' ) ;
5252 const isDesign = trackLower === 'design' ;
5353
5454 let SubmissionSortOptions = [
55- { field : 'Rating' , sort : 'asc ' , name : 'Rating: High to Low' } ,
56- { field : 'Rating' , sort : 'desc ' , name : 'Rating: Low to High' } ,
55+ { field : 'Rating' , sort : 'desc ' , name : 'Rating: High to Low' } ,
56+ { field : 'Rating' , sort : 'asc ' , name : 'Rating: Low to High' } ,
5757 { field : 'Username' , sort : 'asc' , name : 'Username' } ,
58- { field : 'Submission Date' , sort : 'asc ' , name : 'Submission Date: New to Old' } ,
59- { field : 'Submission Date' , sort : 'desc ' , name : 'Submission Date: Old to New' } ,
58+ { field : 'Submission Date' , sort : 'desc ' , name : 'Submission Date: New to Old' } ,
59+ { field : 'Submission Date' , sort : 'asc ' , name : 'Submission Date: Old to New' } ,
6060 { field : 'Initial Score' , sort : 'desc' , name : 'Initial Score: High to Low' } ,
6161 { field : 'Initial Score' , sort : 'asc' , name : 'Initial Score: Low to High' } ,
6262 { field : 'Final Score' , sort : 'desc' , name : 'Final Score: High to Low' } ,
6363 { field : 'Final Score' , sort : 'asc' , name : 'Final Score: Low to High' } ,
6464 ] ;
6565
6666 let RegistrationSortOptions = [
67- { field : 'Rating' , sort : 'asc ' , name : 'Rating: High to Low' } ,
68- { field : 'Rating' , sort : 'desc ' , name : 'Rating: Low to High' } ,
67+ { field : 'Rating' , sort : 'desc ' , name : 'Rating: High to Low' } ,
68+ { field : 'Rating' , sort : 'asc ' , name : 'Rating: Low to High' } ,
6969 { field : 'Username' , sort : 'asc' , name : 'Username' } ,
70- { field : 'Registration Date' , sort : 'asc ' , name : 'Registration Date: New to Old' } ,
71- { field : 'Registration Date' , sort : 'desc ' , name : 'Registration Date: Old to New' } ,
72- { field : 'Submitted Date' , sort : 'asc ' , name : 'Submitted Date: New to Old' } ,
73- { field : 'Submitted Date' , sort : 'desc ' , name : 'Submitted Date: Old to New' } ,
70+ { field : 'Registration Date' , sort : 'desc ' , name : 'Registration Date: New to Old' } ,
71+ { field : 'Registration Date' , sort : 'asc ' , name : 'Registration Date: Old to New' } ,
72+ { field : 'Submitted Date' , sort : 'desc ' , name : 'Submitted Date: New to Old' } ,
73+ { field : 'Submitted Date' , sort : 'asc ' , name : 'Submitted Date: Old to New' } ,
7474 ] ;
7575
7676 if ( isF2F || isBugHunt ) {
0 commit comments