Yea, I noticed that, but I hard-coded the order by thinking he could adapt that if needed. It was the row_number() usage that was key.
Also, I didn't see your post before I posted, or I would not have done it, as they were similar (except for the variable order by).