fix ascending filter bug

Fix minor bug introduced in  5a22c1123c4b330f8ea73ef1d9e0538c3abe3e0f