Repository: Chia-Network/chia-blockchain

Issue:
Loading plots randomly rather than in order
### What happened?

Upgraded  from 1.3.4 to 1.3.5 and when loading plots it randomly finds them all over the place rather than in order?

i.e 

should be 
disk 1 plot 1 to 100
disk 2 plot 1 to 100 
and so on

but its
disk 10 plot 45
disk 3 plot 67
disk 12 plot 4
disk 20 plot 19



### Version

1.3.5

### What platform are you using?

Windows

### What ui mode are you using?

GUI

### Relevant log output

```shell
2022-05-12T09:54:32.317 harvester chia.plotting.manager   : INFO     Found plot \\MINIPC\j\Plot 21 10tb\plot-k32-2021-07-22-05-05-823bcb65963cbdeb873228acee463881a983d769ffe25546d35ac940d9c1b042.plot of size 32
2022-05-12T09:54:32.326 harvester chia.plotting.manager   : INFO     Found plot \\MINI-DELL-2\j\Plot 37 12tb\plot-k32-2021-12-17-01-49-bb3152ef53760730a0b6581853e491a4ec62262e960b094c0851f51f53f96fb2.plot of size 32
2022-05-12T09:54:32.336 harvester chia.plotting.manager   : INFO     Found plot \\DELL-MINI-1\n\Plot 11 16tb\plot-k32-2022-03-21-18-29-ab3f35432cde70ebe84ab8d44648622b6298f3465a52af0c5c8a4115d961f41e.plot of size 32
2022-05-12T09:54:32.348 harvester chia.plotting.manager   : INFO     Found plot \\MINI-DELL-2\k\Plot 38 14tb\plot-k32-2022-02-03-12-15-91947271dea50f7f782de0aa28c5020e5da3f77f7757729762f93c3b477368d5.plot of size 32
2022-05-12T09:54:32.356 harvester chia.plotting.manager   : INFO     Found plot \\DELL-MINI-1\g\Plot 4 NFT\plot-k32-2021-09-17-20-56-8c5cac466358b7441e3e78a36b793405a12f3c57c212669abb15fdece1ab8034.plot of size 32
2022-05-12T09:54:32.485 harvester chia.plotting.manager   : INFO     Found plot \\MINIPC\s\Plot 30 10tb\plot-k32-2021-08-18-10-30-c73e324f69f9169c1f277159abfa33ac08668ae4b04eab246b15d19553003eef.plot of size 32
2022-05-12T09:54:32.782 harvester chia.plotting.manager   : INFO     Found plot \\MINIPC\g\Plot 18 10tb POOL\plot-k32-2021-07-14-23-55-249ae8df2e6f6f1d2c6f820a63f661705dc58c6d1a6e1d816cc9a90d7d730a85.plot of size 32
2022-05-12T09:54:32.783 harvester chia.plotting.manager   : INFO     Found plot \\MINI-DELL-2\m\Plot 40 8tb\plot-k32-2022-02-06-16-22-bd49028d4ba06c90ab4671858c197ce68e9c384c7c77330d5b980c46dbeecff8.plot of size 32
2022-05-12T09:54:32.795 harvester chia.plotting.manager   : INFO     Found plot \\MINIPC\i\Plot 20 10tb\plot-k32-2021-07-21-02-58-c03e6fd2d21517296b6d3e43c5cd71691a29d69ee1bc9250c4a919f09f9bf9d4.plot of size 32
2022-05-12T09:54:32.811 harvester chia.plotting.manager   : INFO     Found plot \\MINIPC\i\Plot 20 10tb\plot-k32-2021-07-17-21-38-d89b47ee36cf4369a037749ad6f940600afa706ddfda267b9584dd1f38d07e82.plot of size 32
```



Discussion:
To add, all works fine once all plots are found. Not sure if it takes a bit longer than usual?  Also not sure if this is done by design?

Resolving patch:
diff --git a/chia/plotting/manager.py b/chia/plotting/manager.py
--- a/chia/plotting/manager.py
+++ b/chia/plotting/manager.py
@@ -178,7 +178,7 @@ def _refresh_task(self, sleep_interval_ms: int):
                 for filename in filenames_to_remove:
                     del self.plot_filename_paths[filename]
 
-                for remaining, batch in list_to_batches(list(plot_paths), self.refresh_parameter.batch_size):
+                for remaining, batch in list_to_batches(sorted(list(plot_paths)), self.refresh_parameter.batch_size):
                     batch_result: PlotRefreshResult = self.refresh_batch(batch, plot_directories)
                     if not self._refreshing_enabled:
                         self.log.debug("refresh_plots: Aborted")


Test patch: