aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/Ui/Helper/SortHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx/Ui/Helper/SortHelper.cs')
-rw-r--r--Ryujinx/Ui/Helper/SortHelper.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Ryujinx/Ui/Helper/SortHelper.cs b/Ryujinx/Ui/Helper/SortHelper.cs
index 78917fe7..33ae1bb2 100644
--- a/Ryujinx/Ui/Helper/SortHelper.cs
+++ b/Ryujinx/Ui/Helper/SortHelper.cs
@@ -81,22 +81,22 @@ namespace Ryujinx.Ui.Helper
string aValue = model.GetValue(a, 8).ToString();
string bValue = model.GetValue(b, 8).ToString();
- if (aValue[^2..] == "GB")
+ if (aValue[^3..] == "GiB")
{
- aValue = (float.Parse(aValue[0..^2]) * 1024).ToString();
+ aValue = (float.Parse(aValue[0..^3]) * 1024).ToString();
}
else
{
- aValue = aValue[0..^2];
+ aValue = aValue[0..^3];
}
- if (bValue[^2..] == "GB")
+ if (bValue[^3..] == "GiB")
{
- bValue = (float.Parse(bValue[0..^2]) * 1024).ToString();
+ bValue = (float.Parse(bValue[0..^3]) * 1024).ToString();
}
else
{
- bValue = bValue[0..^2];
+ bValue = bValue[0..^3];
}
if (float.Parse(aValue) > float.Parse(bValue))