Ordering entries by custom field (integer) I'm new to craft so may it be a basic question, however I can't find an answer for it :-/

I have custom field 'width' in my entry type defined as integer.
What I need to achieve is quite simple:

{% set entries = craft.entries.section('windows').find({'width':'&gt; 0'}).order(width) %}


The important now is the .order part it's not working right now :-(. What is correct way to do this? I have found some plugins but I believe craft can do this somehow… It always does (so far).

Thanks for any info on this.
Craft 2
Either of these should work (they are equivalent):
{% set entries = craft.entries.width('&gt; 0').section('windows').order('width') %}

or
{% set entries = craft.entries({
  section: 'windows',
  order: 'width',
  width: '&gt; 0'
}) %}

The reason you are getting &quot;Array to string conversion&quot; error is that find has turned your ElementCriteriaModel into an array.
Craft 3
order is now orderBy
Craft 3 Docs: Element Queries