fixed freshness sort
Merge branch 'twendlan'
freshness sort algorithm updated / fixed tests