summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2024-05-24 12:32:20 -0600
committermo khan <mo@mokhan.ca>2024-05-24 12:32:20 -0600
commit73d124953717cb0a950e4f77069029ef02af9325 (patch)
treed9990b1ed243e754fe040a1b271924f39b21ba89 /bin
parent9bdb91d44fe4657666a22d50b5034a82ef915ca5 (diff)
Sort by sector
Diffstat (limited to 'bin')
-rwxr-xr-xbin/community3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/community b/bin/community
index f7f7a3f..a5adbed 100755
--- a/bin/community
+++ b/bin/community
@@ -49,7 +49,8 @@ class Community
end
def <=>(other)
- self.name <=> other.name
+ [self[:sector], self.name] <=> [other[:sector], other.name]
+ # self.name <=> other.name
end
def create_content_in(root_dir)