Name
sort — return sorted set of tasks over selected parameter.
Synopsis
TS = SORT(TS,parameter[,tendency])
[TS,order] = SORT(TS,parameter[,tendency])
Description
The function sorts tasks inside taskset. Input parameters are:
- TS
Set of tasks
- parameter
the propety for sorting ('ProcTime','ReleaseTime', 'Deadline','DueDate','Weight','Processor' or any vector with the same length as taskset)
- tendency
'inc' as increasing (default), 'dec' as decreasing
- order
list with re-arranged order
note: 'inc' tendenci is exactly nondecreasing, and 'dec' is exactly calcuated as nonincreasing