We need to provide a way to sort the query profiles, on the profiles tab on Drill web UI.
The use case is when users run many queries (several hundred queries), they want a way to list the queries that have taken the longest time (i.e. duration) to complete. All queries that completed, failed or were canceled and took very long, all such queries should be listed on the top in the profiles tab page on Drill web ui.
An option to list the query profiles based on total duration should be provided to user. That way user can easily identify such long running queries.