diff --git a/PokemonGo-UWP/ViewModels/PokemonInventoryPageViewModel.cs b/PokemonGo-UWP/ViewModels/PokemonInventoryPageViewModel.cs index 8ff5c0bf8..57fea792d 100644 --- a/PokemonGo-UWP/ViewModels/PokemonInventoryPageViewModel.cs +++ b/PokemonGo-UWP/ViewModels/PokemonInventoryPageViewModel.cs @@ -185,7 +185,7 @@ private static IEnumerable GetSortedPokemonCollection( case PokemonSortingModes.Health: return pokemonInventory.OrderByDescending(pokemon => pokemon.Stamina); case PokemonSortingModes.Name: - return pokemonInventory.OrderBy(pokemon => Utils.Resources.Pokemon.GetString(pokemon.PokemonId.ToString())); + return pokemonInventory.OrderBy(pokemon => Utils.Resources.Pokemon.GetString(pokemon.PokemonId.ToString())).ThenByDescending(pokemon => pokemon.Cp); case PokemonSortingModes.Combat: return pokemonInventory.OrderByDescending(pokemon => pokemon.Cp); default: diff --git a/PokemonGo-UWP/Views/PokemonInventoryPage.xaml b/PokemonGo-UWP/Views/PokemonInventoryPage.xaml index 6d93aa971..f1fe980ac 100644 --- a/PokemonGo-UWP/Views/PokemonInventoryPage.xaml +++ b/PokemonGo-UWP/Views/PokemonInventoryPage.xaml @@ -316,21 +316,23 @@ + SelectionMode="None" + RelativePanel.AlignRightWithPanel="True" + RelativePanel.AlignTopWithPanel="True" + RelativePanel.AlignLeftWithPanel="True" + RelativePanel.AlignBottomWithPanel="True"> - + + SelectionMode="None" + RelativePanel.AlignRightWithPanel="True" + RelativePanel.AlignTopWithPanel="True" + RelativePanel.AlignLeftWithPanel="True" + RelativePanel.AlignBottomWithPanel="True"> +