Skip to content

Commit

Permalink
fix #199
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatao Li committed Sep 10, 2021
1 parent ee8bad0 commit f48ac0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ViewModels/GridViewModel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,10 @@ and GridViewModel(_gridid: int, ?_parent: GridViewModel, ?_gridsize: GridSize) a
static member MakeGridComparer() =
{ new IComparer<GridViewModel> with
member __.Compare(x: GridViewModel, y: GridViewModel): int =
x.ZIndex - y.ZIndex
let dz = x.ZIndex - y.ZIndex
if dz = 0 then
y.GridId - x.GridId
else dz
}


Expand Down

0 comments on commit f48ac0e

Please sign in to comment.