WinUI: "highest first" sorts stakes exactly
The key 1e15 + bb cannot separate NL2 and NL5: doubles near 1e15 are 0.125 apart, so cash stakes stayed unordered. Use a (cash, height) tuple instead; order is unchanged otherwise (cash by big blind, then tournaments by buy-in). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,8 +40,9 @@ public sealed class StufenPrio : UserControl
|
||||
_prio, _weitereKopf, _weitere);
|
||||
}
|
||||
|
||||
/// <summary>Ordnung "Höchste zuerst": Cash nach Big Blind, danach Turniere nach Buy-in (Schluessel -1 Freeroll bis -4).</summary>
|
||||
public static double Wert(double b) => b > 0 ? 1e15 + b : -b;
|
||||
/// <summary>Ordnung "Höchste zuerst": Cash nach Big Blind, danach Turniere nach Buy-in (Schluessel -1 Freeroll bis -4).
|
||||
/// Ein Tupel statt einer Zahl: 1e15 + bb trennte NL2 und NL5 nicht (Abstand der Doubles bei 1e15 ist 0,125).</summary>
|
||||
public static (bool Cash, double Hoehe) Wert(double b) => (b > 0, b > 0 ? b : -b);
|
||||
|
||||
private static double Bb(JsonObject st) => st.Zahl("bb") ?? 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user