title: Spring JPA naming query with orderBy doesn't work
body: <p>I'm using Spring Boot 2, Spring JPA, Spring Data.</p>
  
  <p>I'm trying to get the first result from a table in which I want to sort results by a int property asc.</p>
  
  <p>This is my bean:</p>
  
  <pre><code>@Entity
  public class DatabaseInstance extends AbstractEntity {
  
      @NotNull
      @Enumerated(EnumType.STRING)
      @Column(nullable = false)
      private Supplier supplier;
  
      NotNull
      @Column(nullable = false, columnDefinition = "INT DEFAULT 0.0")
      private int databaseCount = 0;
  </code></pre>
  
  <p>and this is my repository:</p>
  
  <pre><code>@Transactional
  public interface DatabaseInstanceRepository extends JpaRepository&lt;DatabaseInstance, Long&gt; {
  
      public Optional&lt;DatabaseInstance&gt; findFirstOrderByDatabaseCountAsc();
  
  }
  </code></pre>
  
  <p>According to <a href="https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.query-methods.query-creation" rel="nofollow noreferrer">Spring manual</a> I can order by property name + asc word. At the same time I want the first result (so i get the instance with the lower databaseCount value).</p>
  
  <p>I get this error:</p>
  
  <pre><code>Caused by: org.springframework.data.mapping.PropertyReferenceException: No property asc found for type int! Traversed path: DatabaseInstance.databaseCount.
  </code></pre>
  
  <p>I am not able to figure out what's wrong with my method name. Some advice?</p>