title: sort tibble rows by descending count of NAs
body: <p>Apologies if I have missed where this has been asked before - I couldn't find it. I am learning about tibbles and the verb <code>arrange</code>. I am wondering if there is a more efficient way to <code>arrange</code> rows in descending order of total row NA count then I have done below? I am using the <code>nycflights13</code> dataset.</p>
  
  <pre><code>library(nycflights13)
  library(tidyverse)
  
  options(tibble.width = Inf)
  flights$na_count &lt;- flights %&gt;% is.na %&gt;% rowSums
  arrange(flights, desc(na_count))
  </code></pre>
  
  <p>Part of result:</p>
  
  <p><a href="https://i.stack.imgur.com/9wO4i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9wO4i.png" alt="enter image description here"></a></p>
  
  <p>I checked the help centre and this appears to be on topic though I know working code is often a candidate for code review.</p>