[parser] sort command available

Also added unit test for search and filter