Sorting GridView in Universal Windows Platform
<p>I want to sort items in my GridView. </p>

<p>My GridView looks like:</p>

<pre><code>&lt;GridView x:Name="ivGridView" Margin="70,40,10,10" SelectionChanged="ivGridView_SelectionChanged"&gt;
        &lt;GridView.ItemTemplate&gt;
            &lt;DataTemplate&gt;
                &lt;StackPanel Margin="0,0,0,10"  Width="121" Height="128" VerticalAlignment="Top" Background="#19000000"&gt;
                    &lt;Image Source="{Binding Image}" VerticalAlignment="Top" Height="88" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5" &gt;
                        &lt;Image.RenderTransform&gt;
                            &lt;CompositeTransform ScaleX="1.2" ScaleY="1.2"/&gt;
                        &lt;/Image.RenderTransform&gt;
                    &lt;/Image&gt;
                    &lt;StackPanel Background="{Binding Color}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"&gt;
                        &lt;TextBlock Text="{Binding wpn}" Foreground="White" Margin="10,0,0,0" /&gt;
                        &lt;TextBlock Text="{Binding sname}" Foreground="White" Margin="7,0,0,0" FontWeight="Light" /&gt;
                    &lt;/StackPanel&gt;
                &lt;/StackPanel&gt;
            &lt;/DataTemplate&gt;
        &lt;/GridView.ItemTemplate&gt;
</code></pre>

<p>How can I sort them?</p>