fix
This commit is contained in:
parent
444bbf71b4
commit
a10b8de141
1 changed files with 7 additions and 2 deletions
|
|
@ -317,10 +317,15 @@ export class PersonalController extends Controller {
|
|||
descending ? "DESC" : "ASC"
|
||||
);
|
||||
}else if(sortBy === "position_type"){
|
||||
query = query.orderBy(
|
||||
`personal.positionTypeName`,
|
||||
query = query.orderBy(
|
||||
`personal.positionTypeName`,
|
||||
descending ? "DESC" : "ASC"
|
||||
);
|
||||
}else if(sortBy === "name"){
|
||||
query = query
|
||||
.orderBy(`personal.prefixName`,descending ? "DESC" : "ASC")
|
||||
.addOrderBy(`personal.firstName`,descending ? "DESC" : "ASC")
|
||||
.addOrderBy(`personal.lastName`,descending ? "DESC" : "ASC");
|
||||
}else{
|
||||
query = query.orderBy(
|
||||
`personal.${sortBy}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue