Hi all,

can anyone help me to do the arrangements.
if the URL is like example.com?mr3=50,50,50,50,50&mr2=90,70,70,70,70&mr1=90,90,90,90,90
then
i want to arrange in the order ?mr1=90,90,90,90,90&mr2=90,70,70,70,70&mr3=50,50,50,50,50

Thanks in advance.

Use $_GET to get the variables into array, then use asort() to sort it. Next, joins the parameters using http_build_query()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.