added list sorting to roi definition