In Excel, you can create a column with the length of the words and sort by that column. For example, if your words are in column A starting in row 1 (‘Apple’ in cell A1), enter the following formula in cell B1:
=len(a1)
That will return 5 for ‘Apple’, 2 for ‘Be’, etc. Copy that formula down the column for the list, and do your sort.