Question: My first C#/Xaml-experience was Windows Phone 8 where navigation worked like this:

```
NavigationService.Navigate(new Uri("/MyPage.xaml", UriKind.Relative));

```

Which meant that I could replace the String "/MyPage.xaml" by anything I needed and go to that page.

Is something similar possible with Windows Store Apps?

```
this.Frame.Navigate(typeof(MyPage), UriKind.Relative);

```

MyPage isn't a string here so I can't simply replace it while the app is running. Still any way to do this?

What I am doing is:
I use a ListBox that gets it's data from a bound viewModel. There I wanted to store the target where the app should navigate to after a `SelectionChanged` Event is fired.

Answer: 
Sorting does work like that in MongoDB but you can do this on the fly with aggregate:

Take the following data:

```js
{ "field" : "BBB" }
{ "field" : "aaa" }
{ "field" : "AAA" }

```

So with the following statement:

```js
db.collection.aggregate([
    { "$project": {
       "field": 1,
       "insensitive": { "$toLower": "$field" }
    }},
    { "$sort": { "insensitive": 1 } }
])

```

Would produce results like:

```js
{
    "field" : "aaa",
    "insensitive" : "aaa"
},
{
    "field" : "AAA",
    "insensitive" : "aaa"
},
{
    "field" : "BBB",
    "insensitive" : "bbb"
}

```

The actual order of insertion would be maintained for any values resulting in the same key when converted.
Tried all the above and answers
**Consolidating the result**

Answer-1:

```
db.collection.aggregate([
    { "$project": {
       "field": 1,
       "insensitive": { "$toLower": "$field" }
    }},
    { "$sort": { "insensitive": 1 } } ])

```

Aggregate query converts the field into lower, So performance is low for large data.

Answer-2:

```
db.collection.find({}).collation({locale: "en"}).sort({"name":1})

```

By default mongo follows uft-8 encoding(Z has high piriority then a) rules ,So overriding with language-specific rules. 
Its fast compare to above query
 Look into an official document to customize rules

<https://docs.mongodb.com/manual/reference/collation/>