Add custom page sorting

I came across a few comics where the pages wouldn't display in the correct order.  This patch fixes it for me.