Allow desc sorting and listing without filter
- The argument became optional in the workflow config permitting to display the top most consuming processes (thanks to
awk 'NR>1') without having to type a piece of process name. - The
awk 'NR>1'pipe remove the headers (PID %CPU COMM) and fix issue when displaying all elements or filtering on words containing "PID", "CPU", etc. (probably issue #11) - The
sort -nrk 2,2pipe sorts results on the second column descending: CPU. - Remove the
uidattribute is mandatory to get sorting working. If an UID is present on an element in the XML response, then Alfred will remember it and suggest it in the top ranked results if the user selected it in the past.

Closes https://github.com/ngreenstein/alfred-process-killer/issues/10, https://github.com/ngreenstein/alfred-process-killer/issues/11
Hi @ngreenstein! Is it possible to merge this pull request?
Hi @yannickglt, and thanks for this! Unfortunately, I don't have access to a copy of Alfred 3 to test this on (just 2), nor do I have a reliable Internet connection at the moment. I would love to merge this in the future, but, in the meantime, I encourage anyone who wishes to to download from this branch. Thanks again!
It's OK! Thanks for your answer. I guess we can wait a bit more to get it merged 😉
You can download Alfred Process Killer with sorting here
I just updated it and it's working very well for me! Great work guys 👍