Added flag for octal sorting
Added flag for pattern sorting (r)