title: react native : What is the way to sort alphabetically the "reason.Name" in picker in my example?
body: <p>What is the way to sort alphabetically the &quot;reason.Name&quot; in picker in my example ?
  if i use the <strong>lodash</strong> so how should i do that ?</p>
  <pre><code>import { Picker } from '@react-native-picker/picker';
  import _, { filter } from 'lodash';
  
  &lt;Picker
                mode=&quot;dropdown&quot;
                selectedValue={selectedValue3}
                style={{
                  placeholderTextColor: 'black',
                  transform: [{ scaleY: 1.2 }, { scaleX: 1.2 }],
                }}
                onValueChange={(itemValue, itemIndex) =&gt; {
                  dispatch(setCurrentTabInfoAction({ reason: foundReason?.Name }))
                }}
              &gt;
                {listReasons3.map((reason, i) =&gt; (
                  &lt;Picker.Item label={reason.Name} value={reason.Code} key={i} /&gt;
                ))}
              &lt;/Picker&gt;
  </code></pre>