Everyone does it differently 😭 and most query string parsers don't support LHS or RHS parsing or building. Prefer RHS for clarity and simplicity of parsing. I don't like the -
or +
operators because It's easy to over look.
- ChatGPT
/users?sort=email,asc
- RHS Single Field
/users?sort=email:ASC
- RHS Multiple Fields
/users?sort=email:asc,name:desc
- RHS Multiple Fields Keyed
/users?sort=email:asc&sort=name:desc
- LHS
/users?sort=[asc]email
- LHS Multiple Fields
/users?sort=[asc]email,[desc]name