I'm not sure whether you are using the code from the linked Community Question Library item or directly from that forum post, but I think the answer should be basically the same in either case.
In both of those routes, there's meant to be "SETVALUE" code that runs on the page after the drag-and-drop ranking question. This code ought to clean up the fake data, but perhaps you haven't included this code or perhaps it simply wasn't working. It's not a big deal either because that code isn't really essential.
The more important code is the free format question that is added to the same page. That question's variable records how many of the responses were truly ranked by the respondent. In your example case, even though the data claims that all five items were ranked, this variable should record a 3 to let you know that it was the first three responses that were actually ranked.