<small style="white-space: nowrap">
    <a
        title="Sort ascending"
        <?php if($column->isSortedAsc()): ?>

            class="text-danger"
        <?php else: ?>
            href="<?= $grid->getSorter()->link($column, 'ASC') ?>"
        <?php endif ?>
        >
        &#x25B2;
    </a>
    <a
        title="Sort descending"
        <?php if($column->isSortedDesc()): ?>
            class="text-danger"
        <?php else: ?>
            href="<?= $grid->getSorter()->link($column, 'DESC') ?>"
        <?php endif ?>
        >
        &#x25BC;
    </a>
</small>
