Fixed the duplicate common result bug, and added forced sorting.