stbaldricks 10.2.0.alpha.1 → 10.2.0.alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c60d3d17879526a63f12cfe8fce6fb6076b0f2bddc534267964de7bb14feb73
4
- data.tar.gz: 64c4d750a50f035d46f49d104b3566f2bc31b4fe54f94e07d21be2e57fd511aa
3
+ metadata.gz: e618e12d24689d35d033fca9e146fe01700f4db511fa90ae7a1e5b8c4ffb9545
4
+ data.tar.gz: 2f325950cbe1fbaa40a24c5f2129ddce0f132219728fa7549f18286194df3ba6
5
5
  SHA512:
6
- metadata.gz: b7d0b6dc043dc86340d6c3de2508889aecb8dae61c647f13649a8ed928507a42c02ec7a24493be0cc93eaa8444164e180f7f1eca70719a29627a19dd97c2b18b
7
- data.tar.gz: e148d641ba983f6fc41cfbea99722b6bc8a8f19c136c813143e313ed22dcae50eff571e7e77b9ba34cb6fdeba483cdc8ec113840e5bb904eb7ee164c5dff8edb
6
+ metadata.gz: 9a98282ae0d87346801d4762e9f4ffc74573b47c120507b9a1b124463a5501effb4dabe2c283b624316822bff8e66f838fc500272c4f4cac240abbf334a769a1
7
+ data.tar.gz: efd98d1cb2420248660c9927c0cf2d1472d90f59a77930c05f31e358fedce9dab173dda461ad7b37f133b59a85c5674b08182d088bdc78c685615ea2126a5051
@@ -38,7 +38,10 @@ module SBF
38
38
 
39
39
  def published_content
40
40
  # Sort content so meta type is at the bottom. This preserves order for rendering on page
41
- content.select { |x| x.is_draft == false }.sort! { |a, b| a.sort_order <=> b.sort_order }.sort! { |a, b| b.type <=> a.type }
41
+ content.select { |x| x.is_draft == false }.sort! do |a, b|
42
+ next b.type <=> a.type unless b.type == a.type
43
+ a.sort_order <=> b.sort_order
44
+ end
42
45
  end
43
46
 
44
47
  def draft_content
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '10.2.0.alpha.1'
3
+ VERSION = '10.2.0.alpha.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stbaldricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.2.0.alpha.1
4
+ version: 10.2.0.alpha.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-24 00:00:00.000000000 Z
11
+ date: 2020-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel