lodash orderby with null and real values not ordering correctly
问题 I have an Angular 2 typescript application that is using lodash for various things. I have an array of objects that I am ordering using a property in the object... _.orderBy(this.myArray, ['propertyName'], ['desc']); This works well however my problem is that sometimes 'propertyName' can have a null value. These are ordered as the first item in a descending list, the highest real values then follow. I want to make these null values appear last in the descending ordering. I understand why the