title: Dynamic Order in JDBI SQL Object Queries
body: <p>How do you do ordering with SQL Object Queries in JDBI?</p>
  
  <p>I want to do something like:</p>
  
  <pre class="lang-java prettyprint-override"><code>@SqlQuery(
      "SELECT * FROM users " +
      "WHERE something = :something " +
      "ORDER BY :orderBy :orderDir"
  )
  List&lt;User&gt; getUsers(
      @Bind("something") Integer something
    , @BindOrderBy("orderBy") String orderBy
    , @BindOrderDir("orderDir") String orderDir
  );
  </code></pre>
  
  <p>or</p>
  
  <pre class="lang-java prettyprint-override"><code>@SqlQuery(
      "SELECT * FROM users " +
      "WHERE something = :something " +
      "ORDER BY :orderBy :orderDir"
  )
  List&lt;User&gt; getUsers(
      @Bind("something") Integer something
    , @Bind("orderBy") OrderBy orderBy
    , @Bind("orderDir") OrderDir orderDir
  );
  </code></pre>