Skip to content

Commit

Permalink
fix: entries
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jul 1, 2024
1 parent 656b2f5 commit 2c96e5b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,7 @@ internal fun SearchClient.buildRestrictionString(restriction: SecuredApiKeyRestr
sortedParams["validUntil"] = it.toString()
}

return sortedParams.toSortedMap().entries.joinToString("&") { "${it.key}=${it.value.encodeURLParameter()}" }
return sortedParams.entries
.sortedBy { it.key }
.joinToString("&") { "${it.key}=${it.value.encodeURLParameter()}" }
}

0 comments on commit 2c96e5b

Please sign in to comment.