@@ -22,30 +22,30 @@ const columns: Array<ColumnDef<any, Person>> = [
2222 {
2323 accessorKey : 'firstName' ,
2424 cell : ( info ) => info . getValue ( ) ,
25- //this column will sort in ascending order by default since it is a string column
25+ // this column will sort in ascending order by default since it is a string column
2626 } ,
2727 {
2828 accessorFn : ( row ) => row . lastName ,
2929 id : 'lastName' ,
3030 cell : ( info ) => info . getValue ( ) ,
3131 header : ( ) => html `< span > Last Name</ span > ` ,
32- sortUndefined : 'last' , //force undefined values to the end
33- sortDescFirst : false , //first sort order will be ascending (nullable values can mess up auto detection of sort order)
32+ sortUndefined : 'last' , // force undefined values to the end
33+ sortDescFirst : false , // first sort order will be ascending (nullable values can mess up auto detection of sort order)
3434 } ,
3535 {
3636 accessorKey : 'age' ,
3737 header : ( ) => 'Age' ,
38- //this column will sort in descending order by default since it is a number column
38+ // this column will sort in descending order by default since it is a number column
3939 } ,
4040 {
4141 accessorKey : 'visits' ,
4242 header : ( ) => html `< span > Visits</ span > ` ,
43- sortUndefined : 'last' , //force undefined values to the end
43+ sortUndefined : 'last' , // force undefined values to the end
4444 } ,
4545 {
4646 accessorKey : 'status' ,
4747 header : 'Status' ,
48- sortingFn : sortStatusFn , //use our custom sorting function for this enum column
48+ sortingFn : sortStatusFn , // use our custom sorting function for this enum column
4949 } ,
5050 {
5151 accessorKey : 'progress' ,
@@ -55,7 +55,7 @@ const columns: Array<ColumnDef<any, Person>> = [
5555 {
5656 accessorKey : 'rank' ,
5757 header : 'Rank' ,
58- invertSorting : true , //invert the sorting order (golf score-like where smaller is better)
58+ invertSorting : true , // invert the sorting order (golf score-like where smaller is better)
5959 } ,
6060 {
6161 accessorKey : 'createdAt' ,
0 commit comments