How to add sort and narrowing action?