Fix issue #3, 'Sort results'

Change-Id: Ie4251365adbd6dc5b15893a5f98d170088133531