# HG changeset patch # User jbe # Date 1735746561 -3600 # Node ID 7f488033d5ee83e2b2b5b94b932a0a4fa6a5dbc9 # Parent 82387194519b73a99905b9e5fd823494b305ed12 Fixed mistake in last-level tie-breaking diff -r 82387194519b -r 7f488033d5ee LICENSE --- a/LICENSE Fri Feb 05 13:50:45 2021 +0100 +++ b/LICENSE Wed Jan 01 16:49:21 2025 +0100 @@ -1,4 +1,4 @@ -Copyright (c) 2009-2021 Public Software Group e. V., Berlin, Germany +Copyright (c) 2009-2025 Public Software Group e. V., Berlin, Germany Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff -r 82387194519b -r 7f488033d5ee core.sql --- a/core.sql Fri Feb 05 13:50:45 2021 +0100 +++ b/core.sql Wed Jan 01 16:49:21 2025 +0100 @@ -5851,11 +5851,11 @@ CASE WHEN "initiative1_ord_p" < "initiative2_ord_p" THEN 1::INT8 << 62 ELSE 0 END - + + - CASE WHEN "tie_breaking_p" = 'variant2'::"tie_breaking" THEN - ("initiative2_ord_p"::INT8 << 31) - "initiative1_ord_p"::INT8 + ("initiative2_ord_p"::INT8 << 31) + "initiative1_ord_p"::INT8 ELSE - "initiative2_ord_p"::INT8 - ("initiative1_ord_p"::INT8 << 31) + ("initiative1_ord_p"::INT8 << 31) + "initiative2_ord_p"::INT8 END END );