|
@@ -59,15 +59,20 @@ namespace InABox.Core
|
|
|
var props = DatabaseSchema.Properties(type)
|
|
|
.OrderBy(x => x.Page, Comparer<string>.Create((x, y) =>
|
|
|
{
|
|
|
- if(x.IsNullOrWhiteSpace() || x.Equals("General"))
|
|
|
+ var result = x.CompareTo(y);
|
|
|
+ if(result == 0)
|
|
|
+ {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ else if(x.Equals(""))
|
|
|
{
|
|
|
return -1;
|
|
|
}
|
|
|
- else if(y.IsNullOrWhiteSpace() || y.Equals("General"))
|
|
|
+ else if(y.Equals(""))
|
|
|
{
|
|
|
return 1;
|
|
|
}
|
|
|
- return x.CompareTo(y);
|
|
|
+ return result;
|
|
|
}))
|
|
|
.ThenBy(x => CoreUtils.GetPropertySequence(x));
|
|
|
|