Added sort order option