# Jekyll Paginate V2 and (maybe) generating front matter

**URL:** <https://talk.jekyllrb.com/t/jekyll-paginate-v2-and-maybe-generating-front-matter/2874>\
**Category:** Help\
**Created:** [May 3, 2019, 11:23pm UTC](https://talk.jekyllrb.com/t/jekyll-paginate-v2-and-maybe-generating-front-matter/2874 "2019-05-03T23:23:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arghc](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@arghc](https://talk.jekyllrb.com/u/arghc)\
**Post date:** [May 3, 2019, 11:23pm UTC](https://talk.jekyllrb.com/t/jekyll-paginate-v2-and-maybe-generating-front-matter/2874/1 "2019-05-03T23:23:22Z")

</div>

Trying to fix a Jekyll Paginate V2 date/time sorting problem, possibly by processing/injecting/generating additional front matter.

I have a blog with “regular” and “event” posts. The event posts have a startDate that the regular posts do not, but I would like to sort them all together in one list. Using Paginate V2 (locked to 2.0.0 because of the [makedir error](https://github.com/sverrirs/jekyll-paginate-v2/issues/150%3E). When I set `sort_field: 'startDate'` it processes, but sorts pseudorandomly. When I set `sort_field: 'startDate:date'`, same thing. When I set `sort_field: 'date:startDate'` i get

```auto
jekyll 3.8.5 | Error: undefined method `has_key?' for 2010-06-23 00:00:00 -0700:Time

```

which is apparently a [Jekyll problem of sorting dates with time stamps](https://github.com/sverrirs/jekyll-paginate-v2/issues/43) (and maybe related to the `sort_field: 'startDate'` not really working?)

Manually adding startDates to my non-event posts did not solve the improper sorting whether it’s a Jekyll proper or Paginate V2 problem (I just rechecked the [Releases page](https://jekyllrb.com/news/releases/) and I am using the most current Jekyll short of pre-Alpha stuff).

I don’t, however, want to remove the times from my startDate stamps because they are needed elsewhere.

So, can I generate another front matter field for Paginate V2 to sort on? Even better, can I also give my non-event posts this justDate field through non-manual means?
