'how to push "yet to submit" at the end of list , while sorting it should be at the end of the list and not include on sorting?

i have list which is comming from API. in that list i have marksPer. if marksPer is 0, iam displaying "yet to submit" in UI. now i have sorting for that list. while doing sorting iam not able to acheive "yet to submit" should come at the end of list and should not include on sorting, while clicking on sort button. in sort we have two fields in drop down. one is high to low and another one is low to high. if we click either of one , "yet to submit" of score is not included in sorting. sorting. ts file sorting functionality: tsfile this is the code where iam handling sorting, if marksper is 0 iam displaying yet to submit. html:
html_code



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source