Sort Order function in Parameter.js was reversing the sort order. Also

set the correct default sorting on activities and profiles