added small to large / large to small parameter to propSort