updated #159, added sortby for results