<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ordering on rustbites</title><link>https://www.rustbites.com/tags/ordering/</link><description>Recent content in Ordering on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 29 May 2026 19:20:56 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/ordering/index.xml" rel="self" type="application/rss+xml"/><item><title>170. Ordering::then_with — Chain Comparators for Multi-Key Sorts</title><link>https://www.rustbites.com/posts/bite-170/</link><pubDate>Fri, 29 May 2026 17:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-170/</guid><description>&lt;p&gt;Sorting by name, then by age, then by id ends in a nested &lt;code&gt;if a == b { ... }&lt;/code&gt; ladder. &lt;code&gt;Ordering::then_with&lt;/code&gt; flattens the whole thing into one expression.&lt;/p&gt;</description></item></channel></rss>