Sort after using layout is broken

If I open a layout, files are sorted using name column, instead of modification date.

Also, I have enabled "automatically select first file in folder" and it makes DO select (and scroll to it) random file in the middle of the list (it's neither the most recent file nor the first file in alphabetical order).

Could you look into the matter?
DO v. 10.2.0.1

<?xml version="1.0" encoding="UTF-8"?>
<lister_layout flags="0">
	<lister state="0x8000">
		<wp rc="158,467,838,1050" showcmd="1" />
		<layout flags="0x103000003" tree_size="240,0" view_mode="details,details" />
		<filedisplay>
			<left buf_flags="320" custom_flags="0,0,0x10000000,3" flags="0" flatview="32" nsid="{B52C30E0-7FF9-47CC-B112-A3D9374CD79E}">
				<pathstring>D:\Music</pathstring>
				<format compatfiles="default" getsizes="off" inheritcolumns="yes" numericname="yes" override_image="yes" sort="mixed" threshhold="25" type="0x10000000" v="1" view_mode="details">
					<field id="name" size="180" />
					<field id="sizeauto" size="63" />
					<field id="modified" size="126" sort="1" />
					<field id="pathrel" size="270" />
					<hide>
						<attr>2</attr>
					</hide>
				</format>
				<curdir>
					<4>
						<pathstring>D:\Music</pathstring>
					</4>
				</curdir>
			</left>
		</filedisplay>
		<tabs1 active="0">
			<tab buf_flags="320" custom_flags="0,0,0x10000000,3" flags="0" flatview="32" nsid="{B52C30E0-7FF9-47CC-B112-A3D9374CD79E}">
				<pathstring>D:\Music</pathstring>
				<format compatfiles="default" getsizes="off" inheritcolumns="yes" numericname="yes" override_image="yes" sort="mixed" threshhold="25" type="0x10000000" v="1" view_mode="details">
					<field id="name" size="180" />
					<field id="sizeauto" size="63" />
					<field id="modified" size="126" sort="1" />
					<field id="pathrel" size="270" />
					<hide>
						<attr>2</attr>
					</hide>
				</format>
				<curdir>
					<4>
						<pathstring>D:\Music</pathstring>
					</4>
				</curdir>
			</tab>
			<tab buf_flags="320" custom_flags="0,0,0x10000000,3" flags="0" flatview="32" name="YouTube" nsid="{B52C30E0-7FF9-47CC-B112-A3D9374CD79E}">
				<pathstring>D:\Video\YouTube\Muzyka</pathstring>
				<format compatfiles="default" getsizes="off" inheritcolumns="yes" numericname="yes" override_image="yes" sort="mixed" threshhold="25" type="0x10000000" v="1" view_mode="details">
					<field id="name" size="180" />
					<field id="sizeauto" size="63" />
					<field id="modified" size="126" sort="1" />
					<field id="pathrel" size="270" />
					<hide>
						<attr>2</attr>
					</hide>
				</format>
				<curdir>
					<4>
						<pathstring>D:\Video\YouTube\Muzyka</pathstring>
					</4>
				</curdir>
			</tab>
		</tabs1>
	</lister>
</lister_layout>

Thanks for the report.

That's happening because the layout's folder formats are being applied, then Opus is switching to Flat View and the Flat View folder format is kicking in and overriding them.

We'll stop that from happening in the next update.

For now, you can work around it by disabling the Flat View folder format (via Prefs / Folders / Folder Formats / Defaults), if you're not depending on it for e.g. adding the Location column when switching to Flat View. Once the new version is out you can turn it back on.

Thanks for the reply.

Does it have anything to do with this bug which allowed me to use flatview=mixed, then flatview=mixednofolders to hide files from hidden folders in flat view? I figured out that it doesn't work anymore. :frowning:

No, those are unrelated.