Skip to content

Order an array of objects based in other array values

Lets say I have an array of products: and I have another, smaller array where I store the order of the products on my page: And I want my Products array in such a way they are ordered like the orderItems array defines, like so: and I want the products who do not have a corresponding orderItem to be at

C# Replacing weirdness

I have an annoying problem with replacing in C#. I have an array with what letter i should to replace with: That’s basically a file output that splits to array Next a have this loop: That should replace it right, according to the JS Can you help me re-writing this exact thing but with C#? I don’t …