posts sort bugfix