Sorting

I am 83 years old , an old hobbyst

Help me again, please …
I have a file (result.txt) of 10000 seriations like:
11 99 87 66 77 position 1
… other continuous positions
33 99 98 91 44 position 10000

I have my own base seriation and I would like to know if it is in the file, even if the seriation is combined differently
example 99 44 33 98 91
or 44 33 91 98 99 etc.
I currently use a simple sorting program but it takes a long time. Can you help me find a quick way to find my seriations? With a cuda program? geforce 9800gtx old type