semicolon and sort. but script still lags