I would like to ask you to add the possibility to sort posts by publication date.
array(
'id' => '_post_orderby',
'name' => esc_html__( 'Order by', 'carousel-slider' ),
'std' => 'ID',
'options' => array(
'none' => esc_html__( 'No order', 'carousel-slider' ),
'ID' => esc_html__( 'Post id', 'carousel-slider' ),
'author' => esc_html__( 'Post author', 'carousel-slider' ),
'title' => esc_html__( 'Post title', 'carousel-slider' ),
'modified' => esc_html__( 'Last modified date', 'carousel-slider' ),
'date' => esc_html__( 'Publication date', 'carousel-slider' ), // Added this line
'rand' => esc_html__( 'Random order', 'carousel-slider' ),
'comment_count' => esc_html__( 'Number of comments', 'carousel-slider' ),
),
)