Top sort files