Sorting multiple fields

I have an interesting task on hand. I need to sort a DocumentList by multiple sort fields.

Single sort field works great by this call –

IDataUtil.sortIDataArrayByKey(dataArray,
key[0],
type,
pattern,
reverse);

Any ideas, Gents ?