[fix] Sort, multiple fields

Fixed bug causing pwf_api throw away all sort columns and use just the
last one
Inline docs