Я новичок в веб-разработке. У меня есть стол,
![enter image description here](https://i.stack.imgur.com/O9UKx.png)
Теперь я делаю это, используя
<th scope="col">Total Resumes<i className="fa fa-fw fa-sort sort-icon" onClick={() => props.sortCountAndScoreAscending('resumeCount')}></i></th>
Теперь я попробовал с двумя иконками fa,
<th scope="col">Technology
<i className="fa fa-sort-asc sort-icon" onClick={(event) => props.sortAscending(event, 'technology')}>
</i>
<i className="fa fa-sort-desc sort-icon" onClick={(event) => props.sortAscending(event, 'technology')}>
</i>
</th>
Но это дает мне
![enter image description here](https://i.stack.imgur.com/rR3Y6.png)
Итак, как получить тот, который на первом изображении?
После использования раствора
![enter image description here](https://i.stack.imgur.com/0ZDos.png)
что я сделал, это
<th>
<div className="d-inline-flex flex-column">
<i className="fa fa-angle-up sort-icon" aria-hidden="true" onClick={() => props.sortData(props.type)}></i>
<i className="fa fa-angle-down sort-icon" aria-hidden="true" onClick={() => props.sortData(props.type)}></i>
</div>
</th>