angular-ui/ui-grid

Sorting works inconsistently , when table column contains null/undefined/empty values

Open

#3,360 创建于 2015年4月24日

在 GitHub 查看
 (15 评论) (1 反应) (1 负责人)JavaScript (5,395 star) (2,496 fork)batch import
good first issue

描述

I observed that the handlenulls method present in all sort methods(exmaple : alphasort) is working inconsistently. It is unable to handle the empty values in present in the table while sorting. Note - I am using Sort Ascending and Sort Descending options and not the header options.

Scenario - When a column containing null values is sorted -

  1. Step 1 : Ascending order - null values are pushed at the bottom, values gets sorted correctly
  2. Step 2 : Descending order - nothing happens ,sorting does not work.

贡献者指南