The rowId corresponds to the value you have set for the "key" column/attribute (key, KEY or Key - not case sensitive), when adding the new row.
So you should be able to get this row Id without having to sort/parse your output.
If you need to parse/process your Data Action output to get the rowId (the key) as an output parameter, you can set a "key" output variable in your Output Contract: