Add option -D for displaying info about installed package + sort output of query option